ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
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]

List of all members.

Public Types

enum  AttributeTypes { POINT_DATA = 0, CELL_DATA = 1 }
enum  RepresentationTypes { POINTS = VTK_POINTS, WIREFRAME = VTK_WIREFRAME, SURFACE = VTK_SURFACE, SURFACE_WITH_EDGES = 3 }

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void MarkModified ()
virtual void SetVisibility (bool val)
virtual void SetRepresentation (const char *)
virtual vtkDataObjectGetRenderedDataObject (int port)
void SetUseOutline (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 SetInterpolateScalarsBeforeMapping (int val)
virtual void SetLookupTable (vtkScalarsToColors *val)
virtual void SetMapScalars (int val)
virtual void SetStatic (int val)
virtual vtkSelectionConvertSelection (vtkView *view, vtkSelection *selection)
virtual void SetAllowSpecularHighlightingWithScalarColoring (int allow)
virtual int ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
void SetSuppressLOD (bool suppress)
virtual void SetColorAttributeType (int)
virtual int GetColorAttributeType ()
virtual void SetColorArrayName (const char *)
virtual char * GetColorArrayName ()
virtual void SetAmbient (double)
virtual void SetDiffuse (double)
virtual void SetSpecular (double)
virtual double GetAmbient ()
virtual double GetDiffuse ()
virtual double GetSpecular ()
virtual void SetRepresentation (int)
virtual int GetRepresentation ()
virtual void SetRequestGhostCellsIfNeeded (bool)
virtual bool GetRequestGhostCellsIfNeeded ()
virtual void RequestGhostCellsIfNeededOn ()
virtual void RequestGhostCellsIfNeededOff ()

Static Public Member Functions

static vtkGeometryRepresentationNew ()
static int IsTypeOf (const char *type)
static vtkGeometryRepresentationSafeDownCast (vtkObject *o)
static bool DoRequestGhostCells (vtkInformation *information)

Protected Member Functions

 vtkGeometryRepresentation ()
 ~vtkGeometryRepresentation ()
virtual void SetupDefaults ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual bool GenerateMetaData (vtkInformation *, vtkInformation *)
virtual bool AddToView (vtkView *view)
virtual bool RemoveFromView (vtkView *view)
virtual void UpdateColoringParameters ()
virtual bool IsCached (double cache_key)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual vtkPVLODActorGetRenderedProp ()

Protected Attributes

vtkAlgorithmGeometryFilter
vtkAlgorithmMultiBlockMaker
vtkPVCacheKeeperCacheKeeper
vtkQuadricClusteringDecimator
vtkMapperMapper
vtkMapperLODMapper
vtkPVLODActorActor
vtkPropertyProperty
vtkUnstructuredDataDeliveryFilterDeliveryFilter
vtkUnstructuredDataDeliveryFilterLODDeliveryFilter
vtkOrderedCompositeDistributorDistributor
vtkPVUpdateSuppressorUpdateSuppressor
vtkPVUpdateSuppressorLODUpdateSuppressor
vtkPVUpdateSuppressorDeliverySuppressor
vtkPVUpdateSuppressorLODDeliverySuppressor
int ColorAttributeType
char * ColorArrayName
double Ambient
double Specular
double Diffuse
int Representation
bool SuppressLOD
bool AllowSpecularHighlightingWithScalarColoring
bool RequestGhostCellsIfNeeded

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.

Definition at line 42 of file vtkGeometryRepresentation.h.


Member Enumeration Documentation

Enumerator:
POINT_DATA 
CELL_DATA 

Definition at line 66 of file vtkGeometryRepresentation.h.

Enumerator:
POINTS 
WIREFRAME 
SURFACE 
SURFACE_WITH_EDGES 

Definition at line 108 of file vtkGeometryRepresentation.h.


Constructor & Destructor Documentation

vtkGeometryRepresentation::vtkGeometryRepresentation ( ) [protected]
vtkGeometryRepresentation::~vtkGeometryRepresentation ( ) [protected]

Member Function Documentation

static vtkGeometryRepresentation* vtkGeometryRepresentation::New ( ) [static]
virtual const char* vtkGeometryRepresentation::GetClassName ( ) [virtual]
static int vtkGeometryRepresentation::IsTypeOf ( const char *  type) [static]
virtual int vtkGeometryRepresentation::IsA ( const char *  type) [virtual]
static vtkGeometryRepresentation* vtkGeometryRepresentation::SafeDownCast ( vtkObject o) [static]
void vtkGeometryRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]
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 vtkGlyph3DRepresentation.

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.

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.

void vtkGeometryRepresentation::SetSuppressLOD ( bool  suppress) [inline]

Enable/Disable LOD;

Definition at line 78 of file vtkGeometryRepresentation.h.

virtual void vtkGeometryRepresentation::SetColorAttributeType ( int  ) [virtual]

Methods to control scalar coloring. ColorAttributeType defines the attribute type.

virtual int vtkGeometryRepresentation::GetColorAttributeType ( ) [virtual]

Methods to control scalar coloring. ColorAttributeType defines the attribute type.

virtual void vtkGeometryRepresentation::SetColorArrayName ( const char *  ) [virtual]

Pick the array to color with.

virtual char* vtkGeometryRepresentation::GetColorArrayName ( ) [virtual]

Pick the array to color with.

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.
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.
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.
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.
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.
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.
virtual void vtkGeometryRepresentation::SetRepresentation ( int  ) [virtual]

Set the representation type. This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.

virtual int vtkGeometryRepresentation::GetRepresentation ( ) [virtual]

Set the representation type. This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.

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

Overload to set representation type using string. Accepted strings are: "Points", "Wireframe", "Surface" and "Surface With Edges".

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

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

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.

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.

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.

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.

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.

void vtkGeometryRepresentation::SetUseOutline ( int  )
void vtkGeometryRepresentation::SetNonlinearSubdivisionLevel ( int  )
virtual void vtkGeometryRepresentation::SetAmbientColor ( double  r,
double  g,
double  b 
) [virtual]
virtual void vtkGeometryRepresentation::SetColor ( double  r,
double  g,
double  b 
) [virtual]
virtual void vtkGeometryRepresentation::SetDiffuseColor ( double  r,
double  g,
double  b 
) [virtual]
virtual void vtkGeometryRepresentation::SetEdgeColor ( double  r,
double  g,
double  b 
) [virtual]
virtual void vtkGeometryRepresentation::SetInterpolation ( int  val) [virtual]
virtual void vtkGeometryRepresentation::SetLineWidth ( double  val) [virtual]
virtual void vtkGeometryRepresentation::SetOpacity ( double  val) [virtual]
virtual void vtkGeometryRepresentation::SetPointSize ( double  val) [virtual]
virtual void vtkGeometryRepresentation::SetSpecularColor ( double  r,
double  g,
double  b 
) [virtual]
virtual void vtkGeometryRepresentation::SetSpecularPower ( double  val) [virtual]
virtual void vtkGeometryRepresentation::SetOrientation ( double  ,
double  ,
double   
) [virtual]
virtual void vtkGeometryRepresentation::SetOrigin ( double  ,
double  ,
double   
) [virtual]
virtual void vtkGeometryRepresentation::SetPickable ( int  val) [virtual]
virtual void vtkGeometryRepresentation::SetPosition ( double  ,
double  ,
double   
) [virtual]
virtual void vtkGeometryRepresentation::SetScale ( double  ,
double  ,
double   
) [virtual]
virtual void vtkGeometryRepresentation::SetTexture ( vtkTexture ) [virtual]
virtual void vtkGeometryRepresentation::SetInterpolateScalarsBeforeMapping ( int  val) [virtual]

Reimplemented in vtkGlyph3DRepresentation.

virtual void vtkGeometryRepresentation::SetLookupTable ( vtkScalarsToColors val) [virtual]

Reimplemented in vtkGlyph3DRepresentation.

virtual void vtkGeometryRepresentation::SetMapScalars ( int  val) [virtual]

Reimplemented in vtkGlyph3DRepresentation.

virtual void vtkGeometryRepresentation::SetStatic ( int  val) [virtual]

Reimplemented in vtkGlyph3DRepresentation.

virtual vtkSelection* vtkGeometryRepresentation::ConvertSelection ( vtkView view,
vtkSelection selection 
) [virtual]

Convert the selection to a type appropriate for sharing with other representations through vtkAnnotationLink, possibly using the view. For the superclass, we just return the same selection. Subclasses may do something more fancy, like convert the selection from a frustrum to a list of pedigree ids. If the selection cannot be applied to this representation, return NULL.

Reimplemented from vtkDataRepresentation.

virtual void vtkGeometryRepresentation::SetAllowSpecularHighlightingWithScalarColoring ( int  allow) [virtual]
virtual void vtkGeometryRepresentation::SetupDefaults ( ) [protected, virtual]

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.

virtual int vtkGeometryRepresentation::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill input port information.

Reimplemented from vtkPassInputTypeAlgorithm.

Reimplemented in vtkGlyph3DRepresentation.

virtual int vtkGeometryRepresentation::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

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.

virtual int vtkGeometryRepresentation::RequestUpdateExtent ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

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

Reimplemented from vtkPVDataRepresentation.

virtual bool vtkGeometryRepresentation::GenerateMetaData ( vtkInformation ,
vtkInformation  
) [protected, virtual]

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

Reimplemented in vtkGeometryRepresentationWithFaces.

virtual bool vtkGeometryRepresentation::AddToView ( vtkView view) [protected, virtual]

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, and vtkGeometryRepresentationWithFaces.

virtual bool vtkGeometryRepresentation::RemoveFromView ( vtkView view) [protected, virtual]

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, and vtkGeometryRepresentationWithFaces.

virtual void vtkGeometryRepresentation::UpdateColoringParameters ( ) [protected, virtual]

Passes on parameters to vtkProperty and vtkMapper

Reimplemented in vtkGlyph3DRepresentation, and vtkGeometryRepresentationWithFaces.

virtual vtkPVLODActor* vtkGeometryRepresentation::GetRenderedProp ( ) [inline, protected, virtual]

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

Reimplemented in vtkGlyph3DRepresentation.

Definition at line 242 of file vtkGeometryRepresentation.h.

virtual bool vtkGeometryRepresentation::IsCached ( double  cache_key) [protected, virtual]

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

Reimplemented from vtkPVDataRepresentation.


Friends And Related Function Documentation

friend class vtkSelectionRepresentation [friend]

Definition at line 280 of file vtkGeometryRepresentation.h.


Member Data Documentation

Definition at line 250 of file vtkGeometryRepresentation.h.

Definition at line 251 of file vtkGeometryRepresentation.h.

Definition at line 252 of file vtkGeometryRepresentation.h.

Definition at line 253 of file vtkGeometryRepresentation.h.

Definition at line 254 of file vtkGeometryRepresentation.h.

Definition at line 255 of file vtkGeometryRepresentation.h.

Definition at line 256 of file vtkGeometryRepresentation.h.

Definition at line 257 of file vtkGeometryRepresentation.h.

Definition at line 258 of file vtkGeometryRepresentation.h.

Definition at line 259 of file vtkGeometryRepresentation.h.

Definition at line 260 of file vtkGeometryRepresentation.h.

Definition at line 261 of file vtkGeometryRepresentation.h.

Definition at line 262 of file vtkGeometryRepresentation.h.

Definition at line 263 of file vtkGeometryRepresentation.h.

Definition at line 264 of file vtkGeometryRepresentation.h.

Definition at line 266 of file vtkGeometryRepresentation.h.

Definition at line 267 of file vtkGeometryRepresentation.h.

Definition at line 268 of file vtkGeometryRepresentation.h.

Definition at line 269 of file vtkGeometryRepresentation.h.

Definition at line 270 of file vtkGeometryRepresentation.h.

Definition at line 271 of file vtkGeometryRepresentation.h.

Definition at line 272 of file vtkGeometryRepresentation.h.

Definition at line 273 of file vtkGeometryRepresentation.h.

Definition at line 274 of file vtkGeometryRepresentation.h.


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