ALBA
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkALBAAssembly Class Reference

#include <vtkALBAAssembly.h>

Inheritance diagram for vtkALBAAssembly:
Inheritance graph
[legend]
Collaboration diagram for vtkALBAAssembly:
Collaboration graph
[legend]

Public Member Functions

 vtkTypeRevisionMacro (vtkALBAAssembly, vtkProp3D)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
albaVMEGetVme ()
 
void SetVme (albaVME *vme)
 
void AddPart (vtkProp3D *)
 
void RemovePart (vtkProp3D *)
 
vtkProp3DCollection * GetParts ()
 
void GetActors (vtkPropCollection *)
 
void GetVolumes (vtkPropCollection *)
 
int RenderOpaqueGeometry (vtkViewport *ren)
 
int RenderTranslucentGeometry (vtkViewport *ren)
 
void ReleaseGraphicsResources (vtkWindow *)
 
void InitPathTraversal ()
 
vtkAssemblyPath * GetNextPath ()
 
int GetNumberOfPaths ()
 
void GetBounds (double bounds[6])
 
virtual double * GetBounds ()
 
unsigned long int GetMTime ()
 
void ShallowCopy (vtkProp *prop)
 
void BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path)
 

Static Public Member Functions

static vtkALBAAssemblyNew ()
 

Protected Member Functions

 vtkALBAAssembly ()
 
 ~vtkALBAAssembly ()
 
virtual void UpdatePaths ()
 

Protected Attributes

albaVMEm_Vme
 
vtkProp3DCollection * m_Parts
 
vtkTimeStamp PathTime
 

Detailed Description

create hierarchies of vtkProp3Ds (transformable props) vtkALBAAssembly same as vtkAssembly, but has an extra link for client data.

See also
vtkActor vtkAssembly vtkTransform vtkMapper vtkPolyDataMapper vtkPropAssembly

Definition at line 36 of file vtkALBAAssembly.h.

Constructor & Destructor Documentation

◆ vtkALBAAssembly()

vtkALBAAssembly::vtkALBAAssembly ( )
protected

◆ ~vtkALBAAssembly()

vtkALBAAssembly::~vtkALBAAssembly ( )
protected

Member Function Documentation

◆ New()

static vtkALBAAssembly * vtkALBAAssembly::New ( )
static

◆ vtkTypeRevisionMacro()

vtkALBAAssembly::vtkTypeRevisionMacro ( vtkALBAAssembly  ,
vtkProp3D   
)

◆ PrintSelf()

void vtkALBAAssembly::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ GetVme()

albaVME * vtkALBAAssembly::GetVme ( )
inline

Get the VME associated to this Assembly.

Definition at line 46 of file vtkALBAAssembly.h.

◆ SetVme()

void vtkALBAAssembly::SetVme ( albaVME vme)
inline

Set the VME associated to this Assembly.

Definition at line 50 of file vtkALBAAssembly.h.

◆ AddPart()

void vtkALBAAssembly::AddPart ( vtkProp3D *  )

Add a part to the list of parts.

◆ RemovePart()

void vtkALBAAssembly::RemovePart ( vtkProp3D *  )

Remove a part from the list of parts,.

◆ GetParts()

vtkProp3DCollection * vtkALBAAssembly::GetParts ( )
inline

Return the parts (direct descendants) of this assembly.

Get the list of parts for this assembly.

Definition at line 147 of file vtkALBAAssembly.h.

References m_Parts.

◆ GetActors()

void vtkALBAAssembly::GetActors ( vtkPropCollection *  )

For some exporters and other other operations we must be able to collect all the actors or volumes.

These methods are used in that process.

◆ GetVolumes()

void vtkALBAAssembly::GetVolumes ( vtkPropCollection *  )

◆ RenderOpaqueGeometry()

int vtkALBAAssembly::RenderOpaqueGeometry ( vtkViewport *  ren)

Render this assembly and all its parts.

The rendering process is recursive. Note that a mapper need not be defined. If not defined, then no geometry will be drawn for this assembly. This allows you to create "logical" assemblies; that is, assemblies that only serve to group and transform its parts.

◆ RenderTranslucentGeometry()

int vtkALBAAssembly::RenderTranslucentGeometry ( vtkViewport *  ren)

◆ ReleaseGraphicsResources()

void vtkALBAAssembly::ReleaseGraphicsResources ( vtkWindow *  )

Release any graphics resources that are being consumed by this actor.

The parameter window could be used to determine which graphic resources to release.

◆ InitPathTraversal()

void vtkALBAAssembly::InitPathTraversal ( )

Methods to traverse the parts of an assembly.

Each part (starting from the root) will appear properly transformed and with the correct properties (depending upon the ApplyProperty and ApplyTransform ivars). Note that the part appears as an instance of vtkProp. These methods should be contrasted to those that traverse the list of parts using GetParts(). GetParts() returns a list of children of this assembly, not necessarily with the correct transformation or properties. To use the methods below - first invoke InitPathTraversal() followed by repeated calls to GetNextPath(). GetNextPath() returns a NULL pointer when the list is exhausted.

◆ GetNextPath()

vtkAssemblyPath * vtkALBAAssembly::GetNextPath ( )

◆ GetNumberOfPaths()

int vtkALBAAssembly::GetNumberOfPaths ( )

◆ GetBounds() [1/2]

void vtkALBAAssembly::GetBounds ( double  bounds[6])
inline

Get the bounds for the assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).

Definition at line 104 of file vtkALBAAssembly.h.

◆ GetBounds() [2/2]

virtual double * vtkALBAAssembly::GetBounds ( )
virtual

◆ GetMTime()

unsigned long int vtkALBAAssembly::GetMTime ( )

Override default GetMTime method to also consider all of the assembly's parts.

◆ ShallowCopy()

void vtkALBAAssembly::ShallowCopy ( vtkProp *  prop)

Shallow copy of an assembly.

Overloads the virtual vtkProp method.

◆ BuildPaths()

void vtkALBAAssembly::BuildPaths ( vtkAssemblyPaths *  paths,
vtkAssemblyPath *  path 
)

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Overload the superclass' vtkProp BuildPaths() method.

Paths consist of an ordered sequence of actors, with transformations properly concatenated.

◆ UpdatePaths()

virtual void vtkALBAAssembly::UpdatePaths ( )
protectedvirtual

Member Data Documentation

◆ m_Vme

albaVME* vtkALBAAssembly::m_Vme
protected

Definition at line 130 of file vtkALBAAssembly.h.

◆ m_Parts

vtkProp3DCollection* vtkALBAAssembly::m_Parts
protected

Definition at line 133 of file vtkALBAAssembly.h.

Referenced by GetParts().

◆ PathTime

vtkTimeStamp vtkALBAAssembly::PathTime
protected

Definition at line 137 of file vtkALBAAssembly.h.


The documentation for this class was generated from the following file: