VTK
|
mapper for composite dataset consisting of polygonal data. More...
#include <vtkCompositePolyDataMapper2.h>
mapper for composite dataset consisting of polygonal data.
mapper for composite dataset
vtkCompositePolyDataMapper2 is similar to vtkCompositePolyDataMapper except that instead of creating individual mapper for each block in the composite dataset, it iterates over the blocks internally.
vtkCompositePolyDataMapper2 is similar to vtkGenericCompositePolyDataMapper2 but requires that its inputs all have the same properties (normals, tcoord, scalars, etc) It will only draw polys and it does not support edge flags. The advantage to using this class is that it generally should be faster
Definition at line 36 of file vtkCompositePolyDataMapper2.h.
Reimplemented from vtkPainterPolyDataMapper.
Definition at line 40 of file vtkCompositePolyDataMapper2.h.
Reimplemented from vtkPainterPolyDataMapper.
Definition at line 40 of file vtkCompositePolyDataMapper2.h.
vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2 | ( | ) | [protected] |
vtkCompositePolyDataMapper2::~vtkCompositePolyDataMapper2 | ( | ) | [protected] |
vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2 | ( | ) | [protected] |
vtkCompositePolyDataMapper2::~vtkCompositePolyDataMapper2 | ( | ) | [protected] |
static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPainterPolyDataMapper.
static int vtkCompositePolyDataMapper2::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPainterPolyDataMapper.
virtual int vtkCompositePolyDataMapper2::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPainterPolyDataMapper.
static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPainterPolyDataMapper.
virtual vtkObjectBase* vtkCompositePolyDataMapper2::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPainterPolyDataMapper.
Reimplemented from vtkPainterPolyDataMapper.
void vtkCompositePolyDataMapper2::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPainterPolyDataMapper.
virtual bool vtkCompositePolyDataMapper2::GetIsOpaque | ( | ) | [virtual] |
Returns if the mapper does not expect to have translucent geometry. This may happen when using ScalarMode is set to not map scalars i.e. render the scalar array directly as colors and the scalar array has opacity i.e. alpha component. Note that even if this method returns true, an actor may treat the geometry as translucent since a constant translucency is set on the property, for example. Overridden to use the actual data and ScalarMode to determine if we have opaque geometry.
Reimplemented from vtkPainterPolyDataMapper.
void vtkCompositePolyDataMapper2::SetCompositeDataDisplayAttributes | ( | vtkCompositeDataDisplayAttributes * | attributes | ) |
Set/get the composite data set attributes.
Reimplemented from vtkGenericCompositePolyDataMapper2.
vtkCompositeDataDisplayAttributes* vtkCompositePolyDataMapper2::GetCompositeDataDisplayAttributes | ( | ) |
Set/get the composite data set attributes.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::SetBlockVisibility | ( | unsigned int | index, |
bool | visible | ||
) |
Set/get the visibility for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
bool vtkCompositePolyDataMapper2::GetBlockVisibility | ( | unsigned int | index | ) | const |
Set/get the visibility for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::RemoveBlockVisibility | ( | unsigned int | index | ) |
Set/get the visibility for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Set/get the visibility for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::SetBlockColor | ( | unsigned int | index, |
double | color[3] | ||
) |
Set/get the color for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::SetBlockColor | ( | unsigned int | index, |
double | r, | ||
double | g, | ||
double | b | ||
) | [inline] |
Set/get the color for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Definition at line 70 of file vtkCompositePolyDataMapper2.h.
double* vtkCompositePolyDataMapper2::GetBlockColor | ( | unsigned int | index | ) |
Set/get the color for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::RemoveBlockColor | ( | unsigned int | index | ) |
Set/get the color for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Set/get the color for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::SetBlockOpacity | ( | unsigned int | index, |
double | opacity | ||
) |
Set/get the opacity for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
double vtkCompositePolyDataMapper2::GetBlockOpacity | ( | unsigned int | index | ) |
Set/get the opacity for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
void vtkCompositePolyDataMapper2::RemoveBlockOpacity | ( | unsigned int | index | ) |
Set/get the opacity for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Set/get the opacity for a block given its flat index.
Reimplemented from vtkGenericCompositePolyDataMapper2.
vtkExecutive* vtkCompositePolyDataMapper2::CreateDefaultExecutive | ( | ) | [protected, virtual] |
We need to override this method because the standard streaming demand driven pipeline is not what we want - we are expecting hierarchical data as input
Reimplemented from vtkGenericCompositePolyDataMapper2.
virtual int vtkCompositePolyDataMapper2::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Need to define the type of data handled by this mapper.
Reimplemented from vtkGenericCompositePolyDataMapper2.
virtual void vtkCompositePolyDataMapper2::ComputeBounds | ( | ) | [protected, virtual] |
Need to loop over the hierarchy to compute bounds
Reimplemented from vtkPainterPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::UpdatePainterInformation | ( | ) | [protected, virtual] |
Called when the PainterInformation becomes obsolete. Overridden to pass CompositeDataDisplayAttributes to the painters.
Reimplemented from vtkPainterPolyDataMapper.
static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPainterPolyDataMapper.
static int vtkCompositePolyDataMapper2::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPainterPolyDataMapper.
virtual int vtkCompositePolyDataMapper2::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPainterPolyDataMapper.
static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPainterPolyDataMapper.
virtual vtkObjectBase* vtkCompositePolyDataMapper2::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPainterPolyDataMapper.
Reimplemented from vtkPainterPolyDataMapper.
void vtkCompositePolyDataMapper2::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPainterPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::Render | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
This calls RenderPiece (in a for loop if streaming is necessary).
Reimplemented from vtkPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::RenderPiece | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented from vtkPainterPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::RenderPieceDraw | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::RenderEdges | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::BuildBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Build the VBO/IBO, called by UpdateBufferObjects
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkCompositePolyDataMapper2::AppendOneBufferObject | ( | vtkRenderer * | ren, |
vtkActor * | act, | ||
vtkPolyData * | pd, | ||
unsigned int | flat_index | ||
) | [protected, virtual] |
Build the VBO/IBO, called by UpdateBufferObjects
void vtkCompositePolyDataMapper2::FreeStructures | ( | ) | [protected] |
void vtkCompositePolyDataMapper2::BuildRenderValues | ( | vtkRenderer * | renderer, |
vtkActor * | actor, | ||
vtkDataObject * | dobj, | ||
unsigned int & | flat_index, | ||
unsigned int & | lastVertex, | ||
unsigned int & | lastIndex, | ||
unsigned int & | lastEdgeIndex | ||
) | [protected] |
vtkTimeStamp vtkCompositePolyDataMapper2::BoundsMTime [protected] |
Time stamp for computation of bounds.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Definition at line 109 of file vtkCompositePolyDataMapper2.h.
vtkSmartPointer<vtkCompositeDataDisplayAttributes> vtkCompositePolyDataMapper2::CompositeAttributes [protected] |
Composite data set attributes.
Reimplemented from vtkGenericCompositePolyDataMapper2.
Definition at line 112 of file vtkCompositePolyDataMapper2.h.
Definition at line 114 of file vtkCompositePolyDataMapper2.h.
std::vector<unsigned int> vtkCompositePolyDataMapper2::VertexOffsets [protected] |
Definition at line 61 of file vtkCompositePolyDataMapper2.h.
std::vector<unsigned int> vtkCompositePolyDataMapper2::IndexOffsets [protected] |
Definition at line 62 of file vtkCompositePolyDataMapper2.h.
std::vector<unsigned int> vtkCompositePolyDataMapper2::IndexArray [protected] |
Definition at line 63 of file vtkCompositePolyDataMapper2.h.
std::vector<unsigned int> vtkCompositePolyDataMapper2::EdgeIndexArray [protected] |
Definition at line 64 of file vtkCompositePolyDataMapper2.h.
std::vector<unsigned int> vtkCompositePolyDataMapper2::EdgeIndexOffsets [protected] |
Definition at line 65 of file vtkCompositePolyDataMapper2.h.
unsigned int vtkCompositePolyDataMapper2::MaximumFlatIndex [protected] |
Definition at line 66 of file vtkCompositePolyDataMapper2.h.
std::vector<RenderValue> vtkCompositePolyDataMapper2::RenderValues [protected] |
Definition at line 83 of file vtkCompositePolyDataMapper2.h.
Definition at line 84 of file vtkCompositePolyDataMapper2.h.
bool vtkCompositePolyDataMapper2::UseGeneric [protected] |
Definition at line 86 of file vtkCompositePolyDataMapper2.h.
Definition at line 87 of file vtkCompositePolyDataMapper2.h.