ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
vtkGeometryRepresentation Class Reference

representation for showing any datasets as external shell of polygons. More...

#include <vtkGeometryRepresentation.h>

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

Public Types

enum  RepresentationTypes { POINTS = VTK_POINTS, WIREFRAME = VTK_WIREFRAME, SURFACE = VTK_SURFACE, SURFACE_WITH_EDGES = 3 }
 
typedef vtkPVDataRepresentation Superclass
 
- Public Types inherited from vtkPVDataRepresentation
typedef vtkDataRepresentation Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
 vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More...
 
virtual void MarkModified ()
 This needs to be called on all instances of vtkGeometryRepresentation when the input is modified. More...
 
virtual void SetVisibility (bool val)
 Get/Set the visibility for this representation. More...
 
virtual void SetSuppressLOD (bool suppress)
 Enable/Disable LOD;. More...
 
virtual void SetRepresentation (const char *)
 Overload to set representation type using string. More...
 
virtual vtkDataObject * GetRenderedDataObject (int port)
 Returns the data object that is rendered from the given input port. More...
 
virtual void SetUseOutline (int)
 
void SetTriangulate (int)
 
void SetNonlinearSubdivisionLevel (int)
 
virtual void SetAmbientColor (double r, double g, double b)
 
virtual void SetColor (double r, double g, double b)
 
virtual void SetDiffuseColor (double r, double g, double b)
 
virtual void SetEdgeColor (double r, double g, double b)
 
virtual void SetInterpolation (int val)
 
virtual void SetLineWidth (double val)
 
virtual void SetOpacity (double val)
 
virtual void SetPointSize (double val)
 
virtual void SetSpecularColor (double r, double g, double b)
 
virtual void SetSpecularPower (double val)
 
virtual void SetOrientation (double, double, double)
 
virtual void SetOrigin (double, double, double)
 
virtual void SetPickable (int val)
 
virtual void SetPosition (double, double, double)
 
virtual void SetScale (double, double, double)
 
virtual void SetTexture (vtkTexture *)
 
virtual void SetUserTransform (const double[16])
 
virtual void SetInterpolateScalarsBeforeMapping (int val)
 
virtual void SetLookupTable (vtkScalarsToColors *val)
 
vtkPVLODActorGetActor ()
 Provides access to the actor used by this representation. More...
 
const char * GetColorArrayName ()
 Convenience method to get the array name used to scalar color with. More...
 
void SetBlockColorsDistinctValues (int distinctValues)
 Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter. More...
 
int GetBlockColorsDistinctValues ()
 Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter. More...
 
virtual void SetAmbient (double)
 Set the lighting properties of the object. More...
 
virtual void SetDiffuse (double)
 Set the lighting properties of the object. More...
 
virtual void SetSpecular (double)
 Set the lighting properties of the object. More...
 
virtual double GetAmbient ()
 Set the lighting properties of the object. More...
 
virtual double GetDiffuse ()
 Set the lighting properties of the object. More...
 
virtual double GetSpecular ()
 Set the lighting properties of the object. More...
 
virtual void SetRepresentation (int)
 Set the representation type. More...
 
virtual int GetRepresentation ()
 Set the representation type. More...
 
virtual void SetRequestGhostCellsIfNeeded (bool)
 Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More...
 
virtual bool GetRequestGhostCellsIfNeeded ()
 Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More...
 
virtual void RequestGhostCellsIfNeededOn ()
 Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More...
 
virtual void RequestGhostCellsIfNeededOff ()
 Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More...
 
virtual void SetMapScalars (int val)
 Sets if scalars are mapped through a color-map or are used directly as colors. More...
 
virtual void SetStatic (int val)
 Sets if scalars are mapped through a color-map or are used directly as colors. More...
 
virtual void SetBlockVisibility (unsigned int index, bool visible)
 Set/get the visibility for a single block. More...
 
virtual bool GetBlockVisibility (unsigned int index) const
 Set/get the visibility for a single block. More...
 
virtual void RemoveBlockVisibility (unsigned int index, bool=true)
 Set/get the visibility for a single block. More...
 
virtual void RemoveBlockVisibilities ()
 Set/get the visibility for a single block. More...
 
virtual void SetBlockColor (unsigned int index, double r, double g, double b)
 Set/get the color for a single block. More...
 
virtual void SetBlockColor (unsigned int index, double *color)
 Set/get the color for a single block. More...
 
virtual double * GetBlockColor (unsigned int index)
 Set/get the color for a single block. More...
 
virtual void RemoveBlockColor (unsigned int index)
 Set/get the color for a single block. More...
 
virtual void RemoveBlockColors ()
 Set/get the color for a single block. More...
 
virtual void SetBlockOpacity (unsigned int index, double opacity)
 Set/get the opacityfor a single block. More...
 
virtual void SetBlockOpacity (unsigned int index, double *opacity)
 Set/get the opacityfor a single block. More...
 
virtual double GetBlockOpacity (unsigned int index)
 Set/get the opacityfor a single block. More...
 
virtual void RemoveBlockOpacity (unsigned int index)
 Set/get the opacityfor a single block. More...
 
virtual void RemoveBlockOpacities ()
 Set/get the opacityfor a single block. More...
 
virtual void SetEnableScaling (int v)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 
virtual void SetScalingArrayName (const char *)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 
virtual void SetScalingFunction (vtkPiecewiseFunction *pwf)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 
virtual void SetUseDataPartitions (bool)
 Specify whether or not to redistribute the data. More...
 
virtual bool GetUseDataPartitions ()
 Specify whether or not to redistribute the data. More...
 
- Public Member Functions inherited from vtkPVDataRepresentation
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual unsigned int Initialize (unsigned int minIdAvailable, unsigned int maxIdAvailable)
 Initialize the representation with an identifier range so each internal representation can own a unique ID. More...
 
unsigned int GetUniqueIdentifier ()
 Return 0 if the Initialize() method was not called otherwise a unique ID that will be shared across the processes for that same object. More...
 
virtual bool GetVisibility ()
 
virtual vtkDataObject * GetRenderedDataObject (int vtkNotUsed(port))
 Returns the data object that is rendered from the given input port. More...
 
virtual void SetForcedCacheKey (double val)
 Typically a representation decides whether to use cache based on the view's values for UseCache and CacheKey. More...
 
virtual void SetForceUseCache (bool val)
 
bool GetUsingCacheForUpdate ()
 Called by vtkPVDataRepresentationPipeline to see if using cache is valid and will be used for the update. More...
 
virtual bool GetNeedUpdate ()
 
virtual vtkAlgorithmOutput * GetInternalOutputPort ()
 Retrieves an output port for the input data object at the specified port and connection index. More...
 
virtual vtkAlgorithmOutput * GetInternalOutputPort (int port)
 
virtual vtkAlgorithmOutput * GetInternalOutputPort (int port, int conn)
 
vtkView * GetView () const
 Provides access to the view. More...
 
virtual void SetUpdateTime (double time)
 Set the update time. More...
 
virtual double GetUpdateTime ()
 Set the update time. More...
 
virtual bool GetUpdateTimeValid ()
 Set whether the UpdateTime is valid. More...
 
virtual void SetUseCache (bool)
 
virtual void SetCacheKey (double val)
 
virtual double GetCacheKey ()
 Returns whether caching is used and what key to use when caching is enabled. More...
 
virtual bool GetUseCache ()
 Returns whether caching is used and what key to use when caching is enabled. More...
 

Static Public Member Functions

static vtkGeometryRepresentationNew ()
 
static int IsTypeOf (const char *type)
 
static vtkGeometryRepresentationSafeDownCast (vtkObject *o)
 
static bool DoRequestGhostCells (vtkInformation *information)
 Returns true if this class would like to get ghost-cells if available for the connection whose information object is passed as the argument. More...
 
static bool GetBounds (vtkDataObject *dataObject, double bounds[6], vtkCompositeDataDisplayAttributes *cdAttributes)
 Convenience method to get bounds from a dataset/composite dataset. More...
 
- Static Public Member Functions inherited from vtkPVDataRepresentation
static int IsTypeOf (const char *type)
 
static vtkPVDataRepresentationSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkGeometryRepresentation ()
 
 ~vtkGeometryRepresentation ()
 
virtual void SetupDefaults ()
 This method is called in the constructor. More...
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 Fill input port information. More...
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 Subclasses should override this to connect inputs to the internal pipeline as necessary. More...
 
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 Overridden to request correct ghost-level to avoid internal surfaces. More...
 
virtual bool GenerateMetaData (vtkInformation *, vtkInformation *)
 Produce meta-data about this representation that the view may find useful. More...
 
virtual bool AddToView (vtkView *view)
 Adds the representation to the view. More...
 
virtual bool RemoveFromView (vtkView *view)
 Removes the representation to the view. More...
 
virtual void UpdateColoringParameters ()
 Passes on parameters to vtkProperty and vtkMapper. More...
 
virtual vtkPVLODActorGetRenderedProp ()
 Used in ConvertSelection to locate the prop used for actual rendering. More...
 
virtual bool IsCached (double cache_key)
 Overridden to check with the vtkPVCacheKeeper to see if the key is cached. More...
 
- Protected Member Functions inherited from vtkPVDataRepresentation
 vtkPVDataRepresentation ()
 
 ~vtkPVDataRepresentation ()
 
virtual vtkExecutive * CreateDefaultExecutive ()
 Create a default executive. More...
 
virtual int RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

vtkAlgorithm * GeometryFilter
 
vtkAlgorithm * MultiBlockMaker
 
vtkPVCacheKeeperCacheKeeper
 
vtkQuadricClustering * Decimator
 
vtkPVGeometryFilterLODOutlineFilter
 
vtkMapper * Mapper
 
vtkMapper * LODMapper
 
vtkPVLODActorActor
 
vtkProperty * Property
 
double Ambient
 
double Specular
 
double Diffuse
 
int Representation
 
bool SuppressLOD
 
bool RequestGhostCellsIfNeeded
 
double DataBounds [6]
 
vtkPiecewiseFunction * PWF
 
bool UseDataPartitions
 
- Protected Attributes inherited from vtkPVDataRepresentation
double UpdateTime
 
bool UpdateTimeValid
 
unsigned int UniqueIdentifier
 

Friends

class vtkSelectionRepresentation
 

Detailed Description

representation for showing any datasets as external shell of polygons.

vtkGeometryRepresentation is a representation for showing polygon geometry. It handles non-polygonal datasets by extracting external surfaces. One can use this representation to show surface/wireframe/points/surface-with-edges.

Thanks:
The addition of a transformation matrix was supported by CEA/DIF Commissariat a l'Energie Atomique, Centre DAM Ile-De-France, Arpajon, France.

Definition at line 46 of file vtkGeometryRepresentation.h.

Member Typedef Documentation

§ Superclass

Definition at line 51 of file vtkGeometryRepresentation.h.

Member Enumeration Documentation

§ RepresentationTypes

Enumerator
POINTS 
WIREFRAME 
SURFACE 
SURFACE_WITH_EDGES 

Definition at line 107 of file vtkGeometryRepresentation.h.

Constructor & Destructor Documentation

§ vtkGeometryRepresentation()

vtkGeometryRepresentation::vtkGeometryRepresentation ( )
protected

§ ~vtkGeometryRepresentation()

vtkGeometryRepresentation::~vtkGeometryRepresentation ( )
protected

Member Function Documentation

§ New()

static vtkGeometryRepresentation* vtkGeometryRepresentation::New ( )
static

§ GetClassName()

virtual const char* vtkGeometryRepresentation::GetClassName ( )
virtual

§ IsTypeOf()

static int vtkGeometryRepresentation::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkGeometryRepresentation::IsA ( const char *  type)
virtual

§ SafeDownCast()

static vtkGeometryRepresentation* vtkGeometryRepresentation::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

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

§ ProcessViewRequest()

virtual int vtkGeometryRepresentation::ProcessViewRequest ( vtkInformationRequestKey *  request_type,
vtkInformation *  inInfo,
vtkInformation *  outInfo 
)
virtual

vtkAlgorithm::ProcessRequest() equivalent for rendering passes.

This is typically called by the vtkView to request meta-data from the representations or ask them to perform certain tasks e.g. PrepareForRendering.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGeometryRepresentationWithFaces, vtkGlyph3DRepresentation, and vtkGeometrySliceRepresentation.

§ MarkModified()

virtual void vtkGeometryRepresentation::MarkModified ( )
virtual

This needs to be called on all instances of vtkGeometryRepresentation when the input is modified.

This is essential since the geometry filter does not have any real-input on the client side which messes with the Update requests.

Reimplemented from vtkPVDataRepresentation.

§ SetVisibility()

virtual void vtkGeometryRepresentation::SetVisibility ( bool  val)
virtual

Get/Set the visibility for this representation.

When the visibility of representation of false, all view passes are ignored.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGlyph3DRepresentation, and vtkGeometryRepresentationWithFaces.

§ SetBlockColorsDistinctValues()

void vtkGeometryRepresentation::SetBlockColorsDistinctValues ( int  distinctValues)

Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter.

§ GetBlockColorsDistinctValues()

int vtkGeometryRepresentation::GetBlockColorsDistinctValues ( )

Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter.

§ SetSuppressLOD()

virtual void vtkGeometryRepresentation::SetSuppressLOD ( bool  suppress)
inlinevirtual

Enable/Disable LOD;.

Reimplemented in vtkOutlineRepresentation.

Definition at line 89 of file vtkGeometryRepresentation.h.

§ SetAmbient()

virtual void vtkGeometryRepresentation::SetAmbient ( double  )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ SetDiffuse()

virtual void vtkGeometryRepresentation::SetDiffuse ( double  )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ SetSpecular()

virtual void vtkGeometryRepresentation::SetSpecular ( double  )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ GetAmbient()

virtual double vtkGeometryRepresentation::GetAmbient ( )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ GetDiffuse()

virtual double vtkGeometryRepresentation::GetDiffuse ( )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ GetSpecular()

virtual double vtkGeometryRepresentation::GetSpecular ( )
virtual

Set the lighting properties of the object.

vtkGeometryRepresentation overrides these based of the following conditions:

  • When Representation is wireframe or points, it disables diffuse or specular.
  • When scalar coloring is employed, it disabled specular.

§ SetRepresentation() [1/2]

virtual void vtkGeometryRepresentation::SetRepresentation ( int  )
virtual

Set the representation type.

This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.

Reimplemented in vtkOutlineRepresentation.

§ GetRepresentation()

virtual int vtkGeometryRepresentation::GetRepresentation ( )
virtual

Set the representation type.

This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.

§ SetRepresentation() [2/2]

virtual void vtkGeometryRepresentation::SetRepresentation ( const char *  )
virtual

Overload to set representation type using string.

Accepted strings are: "Points", "Wireframe", "Surface" and "Surface With Edges".

Reimplemented in vtkOutlineRepresentation.

§ GetRenderedDataObject()

virtual vtkDataObject* vtkGeometryRepresentation::GetRenderedDataObject ( int  port)
virtual

Returns the data object that is rendered from the given input port.

§ DoRequestGhostCells()

static bool vtkGeometryRepresentation::DoRequestGhostCells ( vtkInformation *  information)
static

Returns true if this class would like to get ghost-cells if available for the connection whose information object is passed as the argument.

§ SetRequestGhostCellsIfNeeded()

virtual void vtkGeometryRepresentation::SetRequestGhostCellsIfNeeded ( bool  )
virtual

Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice.

§ GetRequestGhostCellsIfNeeded()

virtual bool vtkGeometryRepresentation::GetRequestGhostCellsIfNeeded ( )
virtual

Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice.

§ RequestGhostCellsIfNeededOn()

virtual void vtkGeometryRepresentation::RequestGhostCellsIfNeededOn ( )
virtual

Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice.

§ RequestGhostCellsIfNeededOff()

virtual void vtkGeometryRepresentation::RequestGhostCellsIfNeededOff ( )
virtual

Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice.

§ SetUseOutline()

virtual void vtkGeometryRepresentation::SetUseOutline ( int  )
virtual

Reimplemented in vtkOutlineRepresentation.

§ SetTriangulate()

void vtkGeometryRepresentation::SetTriangulate ( int  )

§ SetNonlinearSubdivisionLevel()

void vtkGeometryRepresentation::SetNonlinearSubdivisionLevel ( int  )

§ SetAmbientColor()

virtual void vtkGeometryRepresentation::SetAmbientColor ( double  r,
double  g,
double  b 
)
virtual

§ SetColor()

virtual void vtkGeometryRepresentation::SetColor ( double  r,
double  g,
double  b 
)
virtual

§ SetDiffuseColor()

virtual void vtkGeometryRepresentation::SetDiffuseColor ( double  r,
double  g,
double  b 
)
virtual

§ SetEdgeColor()

virtual void vtkGeometryRepresentation::SetEdgeColor ( double  r,
double  g,
double  b 
)
virtual

§ SetInterpolation()

virtual void vtkGeometryRepresentation::SetInterpolation ( int  val)
virtual

§ SetLineWidth()

virtual void vtkGeometryRepresentation::SetLineWidth ( double  val)
virtual

§ SetOpacity()

virtual void vtkGeometryRepresentation::SetOpacity ( double  val)
virtual

§ SetPointSize()

virtual void vtkGeometryRepresentation::SetPointSize ( double  val)
virtual

§ SetSpecularColor()

virtual void vtkGeometryRepresentation::SetSpecularColor ( double  r,
double  g,
double  b 
)
virtual

§ SetSpecularPower()

virtual void vtkGeometryRepresentation::SetSpecularPower ( double  val)
virtual

§ SetOrientation()

virtual void vtkGeometryRepresentation::SetOrientation ( double  ,
double  ,
double   
)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetOrigin()

virtual void vtkGeometryRepresentation::SetOrigin ( double  ,
double  ,
double   
)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetPickable()

virtual void vtkGeometryRepresentation::SetPickable ( int  val)
virtual

§ SetPosition()

virtual void vtkGeometryRepresentation::SetPosition ( double  ,
double  ,
double   
)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetScale()

virtual void vtkGeometryRepresentation::SetScale ( double  ,
double  ,
double   
)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetTexture()

virtual void vtkGeometryRepresentation::SetTexture ( vtkTexture *  )
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetUserTransform()

virtual void vtkGeometryRepresentation::SetUserTransform ( const double  [16])
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetInterpolateScalarsBeforeMapping()

virtual void vtkGeometryRepresentation::SetInterpolateScalarsBeforeMapping ( int  val)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetLookupTable()

virtual void vtkGeometryRepresentation::SetLookupTable ( vtkScalarsToColors *  val)
virtual

Reimplemented in vtkGlyph3DRepresentation.

§ SetMapScalars()

virtual void vtkGeometryRepresentation::SetMapScalars ( int  val)
virtual

Sets if scalars are mapped through a color-map or are used directly as colors.

0 maps to VTK_COLOR_MODE_DIRECT_SCALARS 1 maps to VTK_COLOR_MODE_MAP_SCALARS

See also
vtkScalarsToColors::MapScalars

Reimplemented in vtkGlyph3DRepresentation.

§ SetStatic()

virtual void vtkGeometryRepresentation::SetStatic ( int  val)
virtual

Sets if scalars are mapped through a color-map or are used directly as colors.

0 maps to VTK_COLOR_MODE_DIRECT_SCALARS 1 maps to VTK_COLOR_MODE_MAP_SCALARS

See also
vtkScalarsToColors::MapScalars

Reimplemented in vtkGlyph3DRepresentation.

§ GetActor()

vtkPVLODActor* vtkGeometryRepresentation::GetActor ( )
inline

Provides access to the actor used by this representation.

Definition at line 200 of file vtkGeometryRepresentation.h.

§ SetBlockVisibility()

virtual void vtkGeometryRepresentation::SetBlockVisibility ( unsigned int  index,
bool  visible 
)
virtual

Set/get the visibility for a single block.

§ GetBlockVisibility()

virtual bool vtkGeometryRepresentation::GetBlockVisibility ( unsigned int  index) const
virtual

Set/get the visibility for a single block.

§ RemoveBlockVisibility()

virtual void vtkGeometryRepresentation::RemoveBlockVisibility ( unsigned int  index,
bool  = true 
)
virtual

Set/get the visibility for a single block.

§ RemoveBlockVisibilities()

virtual void vtkGeometryRepresentation::RemoveBlockVisibilities ( )
virtual

Set/get the visibility for a single block.

§ SetBlockColor() [1/2]

virtual void vtkGeometryRepresentation::SetBlockColor ( unsigned int  index,
double  r,
double  g,
double  b 
)
virtual

Set/get the color for a single block.

§ SetBlockColor() [2/2]

virtual void vtkGeometryRepresentation::SetBlockColor ( unsigned int  index,
double *  color 
)
virtual

Set/get the color for a single block.

§ GetBlockColor()

virtual double* vtkGeometryRepresentation::GetBlockColor ( unsigned int  index)
virtual

Set/get the color for a single block.

§ RemoveBlockColor()

virtual void vtkGeometryRepresentation::RemoveBlockColor ( unsigned int  index)
virtual

Set/get the color for a single block.

§ RemoveBlockColors()

virtual void vtkGeometryRepresentation::RemoveBlockColors ( )
virtual

Set/get the color for a single block.

§ SetBlockOpacity() [1/2]

virtual void vtkGeometryRepresentation::SetBlockOpacity ( unsigned int  index,
double  opacity 
)
virtual

Set/get the opacityfor a single block.

§ SetBlockOpacity() [2/2]

virtual void vtkGeometryRepresentation::SetBlockOpacity ( unsigned int  index,
double *  opacity 
)
virtual

Set/get the opacityfor a single block.

§ GetBlockOpacity()

virtual double vtkGeometryRepresentation::GetBlockOpacity ( unsigned int  index)
virtual

Set/get the opacityfor a single block.

§ RemoveBlockOpacity()

virtual void vtkGeometryRepresentation::RemoveBlockOpacity ( unsigned int  index)
virtual

Set/get the opacityfor a single block.

§ RemoveBlockOpacities()

virtual void vtkGeometryRepresentation::RemoveBlockOpacities ( )
virtual

Set/get the opacityfor a single block.

§ GetColorArrayName()

const char* vtkGeometryRepresentation::GetColorArrayName ( )

Convenience method to get the array name used to scalar color with.

§ GetBounds()

static bool vtkGeometryRepresentation::GetBounds ( vtkDataObject *  dataObject,
double  bounds[6],
vtkCompositeDataDisplayAttributes *  cdAttributes 
)
static

Convenience method to get bounds from a dataset/composite dataset.

If a vtkCompositeDataDisplayAttributes cdAttributes is provided and if the input data dataObject is vtkCompositeDataSet, only visible blocks of the data will be used to compute the bounds. Returns true if valid bounds were computed.

§ SetEnableScaling()

virtual void vtkGeometryRepresentation::SetEnableScaling ( int  v)
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

§ SetScalingArrayName()

virtual void vtkGeometryRepresentation::SetScalingArrayName ( const char *  )
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

§ SetScalingFunction()

virtual void vtkGeometryRepresentation::SetScalingFunction ( vtkPiecewiseFunction *  pwf)
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

§ SetUseDataPartitions()

virtual void vtkGeometryRepresentation::SetUseDataPartitions ( bool  )
virtual

Specify whether or not to redistribute the data.

The default is false since that is the only way in general to guarantee correct rendering. Can set to true if all rendered data sets are based on the same data partitioning in order to save on the data redistribution.

§ GetUseDataPartitions()

virtual bool vtkGeometryRepresentation::GetUseDataPartitions ( )
virtual

Specify whether or not to redistribute the data.

The default is false since that is the only way in general to guarantee correct rendering. Can set to true if all rendered data sets are based on the same data partitioning in order to save on the data redistribution.

§ SetupDefaults()

virtual void vtkGeometryRepresentation::SetupDefaults ( )
protectedvirtual

This method is called in the constructor.

If the subclasses override any of the iVar vtkObject's of this class e.g. the Mappers, GeometryFilter etc., they should call this method again in their constructor. It must be totally safe to call this method repeatedly.

Reimplemented in vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.

§ FillInputPortInformation()

virtual int vtkGeometryRepresentation::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

Fill input port information.

Reimplemented in vtkGlyph3DRepresentation.

§ RequestData()

virtual int vtkGeometryRepresentation::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Subclasses should override this to connect inputs to the internal pipeline as necessary.

Since most representations are "meta-filters" (i.e. filters containing other filters), you should create shallow copies of your input before connecting to the internal pipeline. The convenience method GetInternalOutputPort will create a cached shallow copy of a specified input for you. The related helper functions GetInternalAnnotationOutputPort, GetInternalSelectionOutputPort should be used to obtain a selection or annotation port whose selections are localized for a particular input data object.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGlyph3DRepresentation, and vtkGeometrySliceRepresentation.

§ RequestUpdateExtent()

virtual int vtkGeometryRepresentation::RequestUpdateExtent ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Overridden to request correct ghost-level to avoid internal surfaces.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGlyph3DRepresentation.

§ GenerateMetaData()

virtual bool vtkGeometryRepresentation::GenerateMetaData ( vtkInformation *  ,
vtkInformation *   
)
protectedvirtual

Produce meta-data about this representation that the view may find useful.

§ AddToView()

virtual bool vtkGeometryRepresentation::AddToView ( vtkView *  view)
protectedvirtual

Adds the representation to the view.

This is called from vtkView::AddRepresentation(). Subclasses should override this method. Returns true if the addition succeeds.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGlyph3DRepresentation, vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.

§ RemoveFromView()

virtual bool vtkGeometryRepresentation::RemoveFromView ( vtkView *  view)
protectedvirtual

Removes the representation to the view.

This is called from vtkView::RemoveRepresentation(). Subclasses should override this method. Returns true if the removal succeeds.

Reimplemented from vtkPVDataRepresentation.

Reimplemented in vtkGlyph3DRepresentation, vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.

§ UpdateColoringParameters()

virtual void vtkGeometryRepresentation::UpdateColoringParameters ( )
protectedvirtual

Passes on parameters to vtkProperty and vtkMapper.

Reimplemented in vtkGlyph3DRepresentation, and vtkGeometryRepresentationWithFaces.

§ GetRenderedProp()

virtual vtkPVLODActor* vtkGeometryRepresentation::GetRenderedProp ( )
inlineprotectedvirtual

Used in ConvertSelection to locate the prop used for actual rendering.

Reimplemented in vtkGlyph3DRepresentation.

Definition at line 332 of file vtkGeometryRepresentation.h.

§ IsCached()

virtual bool vtkGeometryRepresentation::IsCached ( double  cache_key)
protectedvirtual

Overridden to check with the vtkPVCacheKeeper to see if the key is cached.

Reimplemented from vtkPVDataRepresentation.

Friends And Related Function Documentation

§ vtkSelectionRepresentation

friend class vtkSelectionRepresentation
friend

Definition at line 366 of file vtkGeometryRepresentation.h.

Member Data Documentation

§ GeometryFilter

vtkAlgorithm* vtkGeometryRepresentation::GeometryFilter
protected

Definition at line 339 of file vtkGeometryRepresentation.h.

§ MultiBlockMaker

vtkAlgorithm* vtkGeometryRepresentation::MultiBlockMaker
protected

Definition at line 340 of file vtkGeometryRepresentation.h.

§ CacheKeeper

vtkPVCacheKeeper* vtkGeometryRepresentation::CacheKeeper
protected

Definition at line 341 of file vtkGeometryRepresentation.h.

§ Decimator

vtkQuadricClustering* vtkGeometryRepresentation::Decimator
protected

Definition at line 342 of file vtkGeometryRepresentation.h.

§ LODOutlineFilter

vtkPVGeometryFilter* vtkGeometryRepresentation::LODOutlineFilter
protected

Definition at line 343 of file vtkGeometryRepresentation.h.

§ Mapper

vtkMapper* vtkGeometryRepresentation::Mapper
protected

Definition at line 345 of file vtkGeometryRepresentation.h.

§ LODMapper

vtkMapper* vtkGeometryRepresentation::LODMapper
protected

Definition at line 346 of file vtkGeometryRepresentation.h.

§ Actor

vtkPVLODActor* vtkGeometryRepresentation::Actor
protected

Definition at line 347 of file vtkGeometryRepresentation.h.

§ Property

vtkProperty* vtkGeometryRepresentation::Property
protected

Definition at line 348 of file vtkGeometryRepresentation.h.

§ Ambient

double vtkGeometryRepresentation::Ambient
protected

Definition at line 350 of file vtkGeometryRepresentation.h.

§ Specular

double vtkGeometryRepresentation::Specular
protected

Definition at line 351 of file vtkGeometryRepresentation.h.

§ Diffuse

double vtkGeometryRepresentation::Diffuse
protected

Definition at line 352 of file vtkGeometryRepresentation.h.

§ Representation

int vtkGeometryRepresentation::Representation
protected

Definition at line 353 of file vtkGeometryRepresentation.h.

§ SuppressLOD

bool vtkGeometryRepresentation::SuppressLOD
protected

Definition at line 354 of file vtkGeometryRepresentation.h.

§ RequestGhostCellsIfNeeded

bool vtkGeometryRepresentation::RequestGhostCellsIfNeeded
protected

Definition at line 355 of file vtkGeometryRepresentation.h.

§ DataBounds

double vtkGeometryRepresentation::DataBounds[6]
protected

Definition at line 356 of file vtkGeometryRepresentation.h.

§ PWF

vtkPiecewiseFunction* vtkGeometryRepresentation::PWF
protected

Definition at line 358 of file vtkGeometryRepresentation.h.

§ UseDataPartitions

bool vtkGeometryRepresentation::UseDataPartitions
protected

Definition at line 360 of file vtkGeometryRepresentation.h.


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