ParaView
|
combine multiple representations into one with only 1 representation active at a time. More...
#include <vtkCompositeRepresentation.h>
Public Types | |
typedef vtkPVDataRepresentation | Superclass |
![]() | |
typedef vtkDataRepresentation | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetVisibility (bool val) |
Methods overridden to propagate to the active representation. More... | |
vtkPVDataRepresentation * | GetActiveRepresentation () |
Returns the active representation if valid. More... | |
virtual void | MarkModified () |
Propagate the modification to all internal representations. More... | |
virtual vtkDataObject * | GetRenderedDataObject (int port) |
Returns the data object that is rendered from the given input port. More... | |
vtkStringArray * | GetRepresentationTypes () |
Returns the list of available representation types as a string array. More... | |
virtual void | AddRepresentation (const char *key, vtkPVDataRepresentation *repr) |
Add/Remove representations. More... | |
virtual void | RemoveRepresentation (vtkPVDataRepresentation *repr) |
Add/Remove representations. More... | |
virtual void | RemoveRepresentation (const char *key) |
Add/Remove representations. More... | |
void | SetActiveRepresentation (const char *key) |
Set the active key. More... | |
const char * | GetActiveRepresentationKey () |
Set the active key. 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 | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
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... | |
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 vtkCompositeRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkCompositeRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkCompositeRepresentation () | |
~vtkCompositeRepresentation () | |
virtual int | FillInputPortInformation (int, 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... | |
![]() | |
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 *) |
Additional Inherited Members | |
![]() | |
double | UpdateTime |
bool | UpdateTimeValid |
unsigned int | UniqueIdentifier |
combine multiple representations into one with only 1 representation active at a time.
vtkCompositeRepresentation makes is possible to combine multiple representations into one. Only one representation can be active at a give time. vtkCompositeRepresentation provides API to add the representations that form the composite and to pick the active representation.
vtkCompositeRepresentation relies on call AddToView and RemoveFromView on the internal representations whenever it needs to change the active representation. So it is essential that representations handle those methods correctly and don't suffer from uncanny side effects when that's done repeatedly.
Definition at line 40 of file vtkCompositeRepresentation.h.
Definition at line 45 of file vtkCompositeRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation, and vtkPVCompositeOrthographicSliceRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation, and vtkPVCompositeOrthographicSliceRepresentation.
|
static |
void vtkCompositeRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Methods overridden to propagate to the active representation.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation, and vtkPVCompositeOrthographicSliceRepresentation.
|
virtual |
Add/Remove representations.
key
is a unique string used to identify that representation.
|
virtual |
Add/Remove representations.
key
is a unique string used to identify that representation.
|
virtual |
Add/Remove representations.
key
is a unique string used to identify that representation.
void vtkCompositeRepresentation::SetActiveRepresentation | ( | const char * | key | ) |
Set the active key.
If a valid key is not specified, then none of the representations is treated as active.
const char* vtkCompositeRepresentation::GetActiveRepresentationKey | ( | ) |
Set the active key.
If a valid key is not specified, then none of the representations is treated as active.
vtkPVDataRepresentation* vtkCompositeRepresentation::GetActiveRepresentation | ( | ) |
Returns the active representation if valid.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
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.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation.
|
virtual |
Propagate the modification to all internal representations.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeOrthographicSliceRepresentation, and vtkPVCompositeRepresentation.
|
virtual |
Returns the data object that is rendered from the given input port.
vtkStringArray* vtkCompositeRepresentation::GetRepresentationTypes | ( | ) |
Returns the list of available representation types as a string array.
|
virtual |
Passed on to internal representations as well.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation.
|
virtual |
Passed on to internal representations as well.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation.
|
virtual |
Passed on to internal representations as well.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkPVCompositeRepresentation.
|
protectedvirtual |
|
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 vtkPVCompositeRepresentation, and vtkPVCompositeOrthographicSliceRepresentation.
|
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 vtkPVCompositeRepresentation, and vtkPVCompositeOrthographicSliceRepresentation.
|
protected |
Fires UpdateDataEvent.