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

vtkSelectionRepresentation is a representation to show the extracted cells. More...

#include <vtkSelectionRepresentation.h>

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

Public Types

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)
 
void SetLabelRepresentation (vtkDataLabelRepresentation *)
 One must change the internal representations only before the representation is added to a view, after that it should not be touched. More...
 
virtual void MarkModified ()
 This needs to be called on all instances of vtkSelectionRepresentation when the input is modified. More...
 
virtual void SetVisibility (bool val)
 Get/Set the visibility for this representation. More...
 
virtual unsigned int Initialize (unsigned int minIdAvailable, unsigned int maxIdAvailable)
 Override because of internal composite representations that need to be initilized as well. More...
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void RemoveInputConnection (int port, int idx)
 Overridden to simply pass the input to the internal representations. More...
 
virtual void SetUpdateTime (double time)
 Passed on to internal representations as well. More...
 
virtual void SetForceUseCache (bool val)
 Passed on to internal representations as well. More...
 
virtual void SetForcedCacheKey (double val)
 Passed on to internal representations as well. More...
 
void SetColor (double r, double g, double b)
 Forwarded to GeometryRepresentation. More...
 
void SetLineWidth (double val)
 Forwarded to GeometryRepresentation. More...
 
void SetOpacity (double val)
 Forwarded to GeometryRepresentation. More...
 
void SetPointSize (double val)
 Forwarded to GeometryRepresentation. More...
 
void SetRepresentation (int val)
 Forwarded to GeometryRepresentation. More...
 
void SetUseOutline (int)
 Forwarded to GeometryRepresentation. More...
 
void SetOrientation (double, double, double)
 Forwarded to GeometryRepresentation and LabelRepresentation. More...
 
void SetOrigin (double, double, double)
 Forwarded to GeometryRepresentation and LabelRepresentation. More...
 
void SetPosition (double, double, double)
 Forwarded to GeometryRepresentation and LabelRepresentation. More...
 
void SetScale (double, double, double)
 Forwarded to GeometryRepresentation and LabelRepresentation. More...
 
void SetUserTransform (const double[16])
 Forwarded to GeometryRepresentation and LabelRepresentation. More...
 
virtual void SetPointFieldDataArrayName (const char *val)
 Forwarded to vtkDataLabelRepresentation. More...
 
virtual void SetCellFieldDataArrayName (const char *val)
 Forwarded to vtkDataLabelRepresentation. More...
 
- Public Member Functions inherited from vtkPVDataRepresentation
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
 vtkAlgorithm::ProcessRequest() equivalent for rendering passes. 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...
 
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 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 vtkSelectionRepresentationNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSelectionRepresentationSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPVDataRepresentation
static int IsTypeOf (const char *type)
 
static vtkPVDataRepresentationSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkSelectionRepresentation ()
 
 ~vtkSelectionRepresentation ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual bool AddToView (vtkView *view)
 Adds the representation to the view. More...
 
virtual bool RemoveFromView (vtkView *view)
 Removes the representation to the view. More...
 
void TriggerUpdateDataEvent ()
 Fires UpdateDataEvent. More...
 
- Protected Member Functions inherited from vtkPVDataRepresentation
 vtkPVDataRepresentation ()
 
 ~vtkPVDataRepresentation ()
 
virtual bool IsCached (double cache_key)
 Subclasses should override this method when they support caching to indicate if the particular key is cached. More...
 
virtual vtkExecutive * CreateDefaultExecutive ()
 Create a default executive. More...
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 Overridden to invoke vtkCommand::UpdateDataEvent. More...
 
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

vtkGeometryRepresentationGeometryRepresentation
 
vtkDataLabelRepresentationLabelRepresentation
 
- Protected Attributes inherited from vtkPVDataRepresentation
double UpdateTime
 
bool UpdateTimeValid
 
unsigned int UniqueIdentifier
 

Detailed Description

vtkSelectionRepresentation is a representation to show the extracted cells.

It uses vtkGeometryRepresentation and vtkPVDataRepresentation internally.

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 35 of file vtkSelectionRepresentation.h.

Member Typedef Documentation

◆ Superclass

Definition at line 40 of file vtkSelectionRepresentation.h.

Constructor & Destructor Documentation

◆ vtkSelectionRepresentation()

vtkSelectionRepresentation::vtkSelectionRepresentation ( )
protected

◆ ~vtkSelectionRepresentation()

vtkSelectionRepresentation::~vtkSelectionRepresentation ( )
protected

Member Function Documentation

◆ New()

static vtkSelectionRepresentation* vtkSelectionRepresentation::New ( )
static

◆ GetClassName()

virtual const char* vtkSelectionRepresentation::GetClassName ( )
virtual

Reimplemented from vtkPVDataRepresentation.

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkPVDataRepresentation.

◆ SafeDownCast()

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

◆ PrintSelf()

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

◆ SetLabelRepresentation()

void vtkSelectionRepresentation::SetLabelRepresentation ( vtkDataLabelRepresentation )

One must change the internal representations only before the representation is added to a view, after that it should not be touched.

◆ SetInputConnection() [1/2]

virtual void vtkSelectionRepresentation::SetInputConnection ( int  port,
vtkAlgorithmOutput *  input 
)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ SetInputConnection() [2/2]

virtual void vtkSelectionRepresentation::SetInputConnection ( vtkAlgorithmOutput *  input)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ AddInputConnection() [1/2]

virtual void vtkSelectionRepresentation::AddInputConnection ( int  port,
vtkAlgorithmOutput *  input 
)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ AddInputConnection() [2/2]

virtual void vtkSelectionRepresentation::AddInputConnection ( vtkAlgorithmOutput *  input)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ RemoveInputConnection() [1/2]

virtual void vtkSelectionRepresentation::RemoveInputConnection ( int  port,
vtkAlgorithmOutput *  input 
)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ RemoveInputConnection() [2/2]

virtual void vtkSelectionRepresentation::RemoveInputConnection ( int  port,
int  idx 
)
virtual

Overridden to simply pass the input to the internal representations.

We won't need this if vtkPVDataRepresentation correctly respected in the arguments passed to it during ProcessRequest() etc.

◆ MarkModified()

virtual void vtkSelectionRepresentation::MarkModified ( )
virtual

This needs to be called on all instances of vtkSelectionRepresentation 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.

◆ SetUpdateTime()

virtual void vtkSelectionRepresentation::SetUpdateTime ( double  time)
virtual

Passed on to internal representations as well.

Reimplemented from vtkPVDataRepresentation.

◆ SetForceUseCache()

virtual void vtkSelectionRepresentation::SetForceUseCache ( bool  val)
virtual

Passed on to internal representations as well.

Reimplemented from vtkPVDataRepresentation.

◆ SetForcedCacheKey()

virtual void vtkSelectionRepresentation::SetForcedCacheKey ( double  val)
virtual

Passed on to internal representations as well.

Reimplemented from vtkPVDataRepresentation.

◆ SetVisibility()

virtual void vtkSelectionRepresentation::SetVisibility ( bool  val)
virtual

Get/Set the visibility for this representation.

When the visibility of representation of false, all view passes are ignored. Overridden to propagate to the active representation.

Reimplemented from vtkPVDataRepresentation.

◆ SetColor()

void vtkSelectionRepresentation::SetColor ( double  r,
double  g,
double  b 
)

Forwarded to GeometryRepresentation.

◆ SetLineWidth()

void vtkSelectionRepresentation::SetLineWidth ( double  val)

Forwarded to GeometryRepresentation.

◆ SetOpacity()

void vtkSelectionRepresentation::SetOpacity ( double  val)

Forwarded to GeometryRepresentation.

◆ SetPointSize()

void vtkSelectionRepresentation::SetPointSize ( double  val)

Forwarded to GeometryRepresentation.

◆ SetRepresentation()

void vtkSelectionRepresentation::SetRepresentation ( int  val)

Forwarded to GeometryRepresentation.

◆ SetUseOutline()

void vtkSelectionRepresentation::SetUseOutline ( int  )

Forwarded to GeometryRepresentation.

◆ SetOrientation()

void vtkSelectionRepresentation::SetOrientation ( double  ,
double  ,
double   
)

Forwarded to GeometryRepresentation and LabelRepresentation.

◆ SetOrigin()

void vtkSelectionRepresentation::SetOrigin ( double  ,
double  ,
double   
)

Forwarded to GeometryRepresentation and LabelRepresentation.

◆ SetPosition()

void vtkSelectionRepresentation::SetPosition ( double  ,
double  ,
double   
)

Forwarded to GeometryRepresentation and LabelRepresentation.

◆ SetScale()

void vtkSelectionRepresentation::SetScale ( double  ,
double  ,
double   
)

Forwarded to GeometryRepresentation and LabelRepresentation.

◆ SetUserTransform()

void vtkSelectionRepresentation::SetUserTransform ( const double  [16])

Forwarded to GeometryRepresentation and LabelRepresentation.

◆ SetPointFieldDataArrayName()

virtual void vtkSelectionRepresentation::SetPointFieldDataArrayName ( const char *  val)
virtual

◆ SetCellFieldDataArrayName()

virtual void vtkSelectionRepresentation::SetCellFieldDataArrayName ( const char *  val)
virtual

◆ Initialize()

virtual unsigned int vtkSelectionRepresentation::Initialize ( unsigned int  minIdAvailable,
unsigned int  maxIdAvailable 
)
virtual

Override because of internal composite representations that need to be initilized as well.

Reimplemented from vtkPVDataRepresentation.

◆ FillInputPortInformation()

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

◆ AddToView()

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

◆ RemoveFromView()

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

◆ TriggerUpdateDataEvent()

void vtkSelectionRepresentation::TriggerUpdateDataEvent ( )
protected

Fires UpdateDataEvent.

Member Data Documentation

◆ GeometryRepresentation

vtkGeometryRepresentation* vtkSelectionRepresentation::GeometryRepresentation
protected

Definition at line 149 of file vtkSelectionRepresentation.h.

◆ LabelRepresentation

vtkDataLabelRepresentation* vtkSelectionRepresentation::LabelRepresentation
protected

Definition at line 150 of file vtkSelectionRepresentation.h.


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