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

vtkGeometryRepresentationWithFaces extends vtkGeometryRepresentation to add support for rendering back and front faces separately (with different visibility and properties). More...

#include <vtkGeometryRepresentationWithFaces.h>

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

Public Types

enum  RepresentationTypesEx { FOLLOW_FRONTFACE = 400, CULL_BACKFACE = 401, CULL_FRONTFACE = 402 }
 
typedef vtkGeometryRepresentation Superclass
 
- Public Types inherited from vtkGeometryRepresentation
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 SetVisibility (bool val)
 Get/Set the visibility for this representation. More...
 
void SetBackfaceAmbientColor (double r, double g, double b)
 
void SetBackfaceDiffuseColor (double r, double g, double b)
 
void SetBackfaceOpacity (double val)
 
virtual void SetBackfaceRepresentation (int)
 Set the backface representation. More...
 
virtual int GetBackfaceRepresentation ()
 Set the backface representation. More...
 
- Public Member Functions inherited from vtkGeometryRepresentation
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void MarkModified ()
 This needs to be called on all instances of vtkGeometryRepresentation when the input is modified. 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 vtkGeometryRepresentationWithFacesNew ()
 
static int IsTypeOf (const char *type)
 
static vtkGeometryRepresentationWithFacesSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkGeometryRepresentation
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

 vtkGeometryRepresentationWithFaces ()
 
 ~vtkGeometryRepresentationWithFaces ()
 
virtual void SetupDefaults ()
 This method is called in the constructor. 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...
 
- Protected Member Functions inherited from vtkGeometryRepresentation
 vtkGeometryRepresentation ()
 
 ~vtkGeometryRepresentation ()
 
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 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

vtkMapper * BackfaceMapper
 
vtkMapper * LODBackfaceMapper
 
vtkPVLODActorBackfaceActor
 
vtkProperty * BackfaceProperty
 
int BackfaceRepresentation
 
- Protected Attributes inherited from vtkGeometryRepresentation
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
 

Detailed Description

vtkGeometryRepresentationWithFaces extends vtkGeometryRepresentation to add support for rendering back and front faces separately (with different visibility and properties).

Definition at line 29 of file vtkGeometryRepresentationWithFaces.h.

Member Typedef Documentation

◆ Superclass

Definition at line 34 of file vtkGeometryRepresentationWithFaces.h.

Member Enumeration Documentation

◆ RepresentationTypesEx

Enumerator
FOLLOW_FRONTFACE 
CULL_BACKFACE 
CULL_FRONTFACE 

Definition at line 37 of file vtkGeometryRepresentationWithFaces.h.

Constructor & Destructor Documentation

◆ vtkGeometryRepresentationWithFaces()

vtkGeometryRepresentationWithFaces::vtkGeometryRepresentationWithFaces ( )
protected

◆ ~vtkGeometryRepresentationWithFaces()

vtkGeometryRepresentationWithFaces::~vtkGeometryRepresentationWithFaces ( )
protected

Member Function Documentation

◆ New()

static vtkGeometryRepresentationWithFaces* vtkGeometryRepresentationWithFaces::New ( )
static

◆ GetClassName()

virtual const char* vtkGeometryRepresentationWithFaces::GetClassName ( )
virtual

Reimplemented from vtkGeometryRepresentation.

Reimplemented in vtkOutlineRepresentation.

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkGeometryRepresentation.

Reimplemented in vtkOutlineRepresentation.

◆ SafeDownCast()

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

◆ PrintSelf()

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

◆ ProcessViewRequest()

virtual int vtkGeometryRepresentationWithFaces::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 vtkGeometryRepresentation.

◆ SetVisibility()

virtual void vtkGeometryRepresentationWithFaces::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 vtkGeometryRepresentation.

◆ SetBackfaceRepresentation()

virtual void vtkGeometryRepresentationWithFaces::SetBackfaceRepresentation ( int  )
virtual

Set the backface representation.

◆ GetBackfaceRepresentation()

virtual int vtkGeometryRepresentationWithFaces::GetBackfaceRepresentation ( )
virtual

Set the backface representation.

◆ SetBackfaceAmbientColor()

void vtkGeometryRepresentationWithFaces::SetBackfaceAmbientColor ( double  r,
double  g,
double  b 
)

◆ SetBackfaceDiffuseColor()

void vtkGeometryRepresentationWithFaces::SetBackfaceDiffuseColor ( double  r,
double  g,
double  b 
)

◆ SetBackfaceOpacity()

void vtkGeometryRepresentationWithFaces::SetBackfaceOpacity ( double  val)

◆ SetupDefaults()

virtual void vtkGeometryRepresentationWithFaces::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 from vtkGeometryRepresentation.

◆ AddToView()

virtual bool vtkGeometryRepresentationWithFaces::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 vtkGeometryRepresentation.

◆ RemoveFromView()

virtual bool vtkGeometryRepresentationWithFaces::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 vtkGeometryRepresentation.

◆ UpdateColoringParameters()

virtual void vtkGeometryRepresentationWithFaces::UpdateColoringParameters ( )
protectedvirtual

Passes on parameters to vtkProperty and vtkMapper.

Reimplemented from vtkGeometryRepresentation.

Member Data Documentation

◆ BackfaceMapper

vtkMapper* vtkGeometryRepresentationWithFaces::BackfaceMapper
protected

Definition at line 104 of file vtkGeometryRepresentationWithFaces.h.

◆ LODBackfaceMapper

vtkMapper* vtkGeometryRepresentationWithFaces::LODBackfaceMapper
protected

Definition at line 105 of file vtkGeometryRepresentationWithFaces.h.

◆ BackfaceActor

vtkPVLODActor* vtkGeometryRepresentationWithFaces::BackfaceActor
protected

Definition at line 106 of file vtkGeometryRepresentationWithFaces.h.

◆ BackfaceProperty

vtkProperty* vtkGeometryRepresentationWithFaces::BackfaceProperty
protected

Definition at line 107 of file vtkGeometryRepresentationWithFaces.h.

◆ BackfaceRepresentation

int vtkGeometryRepresentationWithFaces::BackfaceRepresentation
protected

Definition at line 108 of file vtkGeometryRepresentationWithFaces.h.


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