55 #ifndef __vtkDataRepresentation_h
56 #define __vtkDataRepresentation_h
58 #include "vtkViewsCoreModule.h"
59 #include "vtkPassInputTypeAlgorithm.h"
61 class vtkAlgorithmOutput;
62 class vtkAnnotationLayers;
67 class vtkTrivialProducer;
76 void PrintSelf(ostream& os, vtkIndent indent);
82 {
return this->Superclass::GetInputConnection(port, index); }
89 {
return this->AnnotationLinkInternal; }
106 { this->Select(view, selection,
false); }
107 void Select(
vtkView* view, vtkSelection* selection,
bool extend);
121 { this->Annotate(view, annotations,
false); }
122 void Annotate(
vtkView* view, vtkAnnotationLayers* annotations,
bool extend);
128 vtkSetMacro(Selectable,
bool);
129 vtkGetMacro(Selectable,
bool);
130 vtkBooleanMacro(Selectable,
bool);
140 { this->UpdateSelection(selection,
false); }
141 void UpdateSelection(vtkSelection* selection,
bool extend);
151 { this->UpdateAnnotations(annotations,
false); }
152 void UpdateAnnotations(vtkAnnotationLayers* annotations,
bool extend);
160 {
return this->GetInternalAnnotationOutputPort(0); }
162 {
return this->GetInternalAnnotationOutputPort(port, 0); }
163 virtual vtkAlgorithmOutput* GetInternalAnnotationOutputPort(
int port,
int conn);
171 {
return this->GetInternalSelectionOutputPort(0); }
173 {
return this->GetInternalSelectionOutputPort(port, 0); }
174 virtual vtkAlgorithmOutput* GetInternalSelectionOutputPort(
int port,
int conn);
182 {
return this->GetInternalOutputPort(0); }
184 {
return this->GetInternalOutputPort(port, 0); }
185 virtual vtkAlgorithmOutput* GetInternalOutputPort(
int port,
int conn);
193 vtkSetMacro(SelectionType,
int);
194 vtkGetMacro(SelectionType,
int);
199 virtual void SetSelectionArrayNames(vtkStringArray* names);
200 vtkGetObjectMacro(SelectionArrayNames, vtkStringArray);
205 virtual void SetSelectionArrayName(
const char* name);
206 virtual const char* GetSelectionArrayName();
215 virtual vtkSelection* ConvertSelection(
vtkView* view, vtkSelection* selection);
233 vtkInformationVector**,
234 vtkInformationVector*)
240 virtual void ProcessEvents(vtkObject *caller,
unsigned long eventId,
void *callData);
261 friend class Command;
282 virtual vtkAnnotationLayers* ConvertAnnotations(
vtkView* view, vtkAnnotationLayers* annotations);
284 vtkTrivialProducer* GetInternalInput(
int port,
int conn);
285 void SetInternalInput(
int port,
int conn, vtkTrivialProducer* producer);
293 Internals* Implementation;
virtual vtkAlgorithmOutput * GetInternalOutputPort()
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort(int port)
virtual vtkAlgorithmOutput * GetInternalOutputPort(int port)
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort()
void Select(vtkView *view, vtkSelection *selection)
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort(int port)
virtual bool AddToView(vtkView *vtkNotUsed(view))
Sets theme colors for a graphical view.
The superclass for all views.
vtkAlgorithmOutput * GetInputConnection(int port=0, int index=0)
vtkStringArray * SelectionArrayNames
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
The superclass for all representations.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkAnnotationLink * GetAnnotationLink()
void Annotate(vtkView *view, vtkAnnotationLayers *annotations)
A view containing a renderer.
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort()
vtkAnnotationLink * AnnotationLinkInternal
void UpdateAnnotations(vtkAnnotationLayers *annotations)
void UpdateSelection(vtkSelection *selection)
An algorithm for linking annotations among objects.