vtkDataRepresentation Class Reference

#include <vtkDataRepresentation.h>

Inheritance diagram for vtkDataRepresentation:

Inheritance graph
[legend]
Collaboration diagram for vtkDataRepresentation:

Collaboration graph
[legend]

List of all members.


Detailed Description

The superclass for all representations.

vtkDataRepresentation the superclass for representations of data objects. This class itself may be instantiated and used as a representation that simply holds a connection to a pipeline.

If there are multiple representations present in a view, you should use a subclass of vtkDataRepresentation. The representation is responsible for taking the input pipeline connection and converting it to an object usable by a view. In the most common case, the representation will contain the pipeline necessary to convert a data object into an actor or set of actors.

The representation has a concept of a selection. If the user performs a selection operation on the view, the view forwards this on to its representations. The representation is responsible for displaying that selection in an appropriate way.

Representation selections may also be linked. The representation shares the selection by converting it into a view-independent format, then setting the selection on its vtkSelectionLink. Other representations sharing the same selection link instance will get the same selection from the selection link when the view is updated. The application is responsible for linking representations as appropriate by setting the same vtkSelectionLink on each linked representation.

Events:
vtkCommand::SelectionChangedEvent
Tests:
vtkDataRepresentation (Tests)

Definition at line 68 of file vtkDataRepresentation.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetInput (vtkDataObject *input)
void Select (vtkView *view, vtkSelection *selection)
void UpdateSelection (vtkSelection *selection)
vtkAlgorithmOutputGetSelectionConnection ()
virtual void SetInputConnection (vtkAlgorithmOutput *conn)
virtual vtkAlgorithmOutputGetInputConnection ()
virtual void SetSelectable (bool)
virtual bool GetSelectable ()
virtual void SelectableOn ()
virtual void SelectableOff ()
virtual vtkSelectionLinkGetSelectionLink ()
virtual void SetSelectionLink (vtkSelectionLink *link)

Static Public Member Functions

static vtkDataRepresentationNew ()
static int IsTypeOf (const char *type)
static vtkDataRepresentationSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkDataRepresentation ()
 ~vtkDataRepresentation ()
virtual bool AddToView (vtkView *vtkNotUsed(view))
virtual bool RemoveFromView (vtkView *vtkNotUsed(view))
virtual vtkSelectionConvertSelection (vtkView *view, vtkSelection *selection)
virtual vtkAlgorithmOutputGetInputConnectionInternal ()
void SetInputConnectionInternal (vtkAlgorithmOutput *conn)
virtual vtkSelectionLinkGetSelectionLinkInternal ()
void SetSelectionLinkInternal (vtkSelectionLink *link)

Protected Attributes

vtkAlgorithmOutputInputConnectionInternal
vtkSelectionLinkSelectionLinkInternal
vtkConvertSelectionDomainConvertDomain
bool Selectable

Friends

class vtkView

Member Typedef Documentation


Constructor & Destructor Documentation

vtkDataRepresentation::vtkDataRepresentation (  )  [protected]

vtkDataRepresentation::~vtkDataRepresentation (  )  [protected]


Member Function Documentation

static vtkDataRepresentation* vtkDataRepresentation::New (  )  [static]

virtual const char* vtkDataRepresentation::GetClassName (  )  [virtual]

static int vtkDataRepresentation::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkGeoAlignedImageRepresentation, vtkGeoGraphRepresentation, vtkGeoGraphRepresentation2D, vtkGeoLineRepresentation, vtkQtChartRepresentation, vtkQtChartTableRepresentation, vtkQtTableDataRepresentation, vtkQtTableMetadataRepresentation, vtkQtTableRepresentation, and vtkSurfaceRepresentation.

virtual int vtkDataRepresentation::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkGeoAlignedImageRepresentation, vtkGeoGraphRepresentation, vtkGeoGraphRepresentation2D, vtkGeoLineRepresentation, vtkQtChartRepresentation, vtkQtChartTableRepresentation, vtkQtTableDataRepresentation, vtkQtTableMetadataRepresentation, vtkQtTableRepresentation, and vtkSurfaceRepresentation.

static vtkDataRepresentation* vtkDataRepresentation::SafeDownCast ( vtkObject o  )  [static]

void vtkDataRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkGeoAlignedImageRepresentation, vtkGeoGraphRepresentation, vtkGeoGraphRepresentation2D, vtkGeoLineRepresentation, vtkQtChartRepresentation, vtkQtChartTableRepresentation, vtkQtTableDataRepresentation, vtkQtTableMetadataRepresentation, vtkQtTableRepresentation, and vtkSurfaceRepresentation.

void vtkDataRepresentation::SetInput ( vtkDataObject input  ) 

A convenience method that calls SetInputConnection on the producer's connection.

virtual void vtkDataRepresentation::SetInputConnection ( vtkAlgorithmOutput conn  )  [virtual]

Sets the input pipeline connection to this representation. This method should be overridden by subclasses to connect to the internal pipeline.

Reimplemented in vtkGeoGraphRepresentation, vtkGeoGraphRepresentation2D, vtkGeoLineRepresentation, vtkQtChartRepresentation, vtkQtTableMetadataRepresentation, vtkQtTableRepresentation, and vtkSurfaceRepresentation.

virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInputConnection (  )  [inline, virtual]

Sets the input pipeline connection to this representation. This method should be overridden by subclasses to connect to the internal pipeline.

Definition at line 84 of file vtkDataRepresentation.h.

void vtkDataRepresentation::Select ( vtkView view,
vtkSelection selection 
)

Handle a selection from a view. Subclasses should not generally override this. This function calls ConvertSelection() to (possibly) convert the selection into something appropriate for linked representations. This function then calls UpdateSelection() with the result of the conversion.

virtual void vtkDataRepresentation::SetSelectable ( bool   )  [virtual]

Whether this representation is able to handle a selection. Default is true.

virtual bool vtkDataRepresentation::GetSelectable (  )  [virtual]

Whether this representation is able to handle a selection. Default is true.

virtual void vtkDataRepresentation::SelectableOn (  )  [virtual]

Whether this representation is able to handle a selection. Default is true.

virtual void vtkDataRepresentation::SelectableOff (  )  [virtual]

Whether this representation is able to handle a selection. Default is true.

void vtkDataRepresentation::UpdateSelection ( vtkSelection selection  ) 

Copies the selection into the representation's linked selection and triggers a SelectionChanged event.

virtual vtkSelectionLink* vtkDataRepresentation::GetSelectionLink (  )  [inline, virtual]

The selection linking object. Set the same selection link on multiple representations to link views. Subclasses should override SetSelectionLink to additionally connect the selection link into the internal selection pipeline.

Definition at line 112 of file vtkDataRepresentation.h.

virtual void vtkDataRepresentation::SetSelectionLink ( vtkSelectionLink link  )  [virtual]

The selection linking object. Set the same selection link on multiple representations to link views. Subclasses should override SetSelectionLink to additionally connect the selection link into the internal selection pipeline.

vtkAlgorithmOutput* vtkDataRepresentation::GetSelectionConnection (  ) 

The output port that contains the selection after it has gone through the domain map. ExtractSelection filters in views/representations should use this port for the selection input.

virtual bool vtkDataRepresentation::AddToView ( vtkView vtkNotUsedview  )  [inline, protected, virtual]

Adds the representation to the view. This is called from vtkView::AddRepresentation(). Subclasses should override this method.

Definition at line 129 of file vtkDataRepresentation.h.

virtual bool vtkDataRepresentation::RemoveFromView ( vtkView vtkNotUsedview  )  [inline, protected, virtual]

Removes the representation to the view. This is called from vtkView::RemoveRepresentation(). Subclasses should override this method.

Definition at line 134 of file vtkDataRepresentation.h.

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

Convert the selection to a type appropriate for sharing with other representations through vtkSelectionLink, 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 in vtkGeoGraphRepresentation, vtkGeoGraphRepresentation2D, vtkGeoLineRepresentation, and vtkSurfaceRepresentation.

virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInputConnectionInternal (  )  [protected, virtual]

void vtkDataRepresentation::SetInputConnectionInternal ( vtkAlgorithmOutput conn  )  [protected]

virtual vtkSelectionLink* vtkDataRepresentation::GetSelectionLinkInternal (  )  [protected, virtual]

void vtkDataRepresentation::SetSelectionLinkInternal ( vtkSelectionLink link  )  [protected]


Friends And Related Function Documentation

friend class vtkView [friend]

Definition at line 161 of file vtkDataRepresentation.h.


Member Data Documentation

Definition at line 147 of file vtkDataRepresentation.h.

Definition at line 152 of file vtkDataRepresentation.h.

Definition at line 155 of file vtkDataRepresentation.h.

Definition at line 158 of file vtkDataRepresentation.h.


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

Generated on Wed Jun 3 18:59:15 2009 for VTK by  doxygen 1.5.6