32 #ifndef pqRenderViewModule_h 33 #define pqRenderViewModule_h 44 class vtkSMRenderViewProxy;
63 vtkSMViewProxy* renModule,
65 QObject* parent=NULL);
71 vtkSMViewProxy* renModule,
73 QObject* parent=NULL);
79 virtual vtkSMRenderViewProxy* getRenderViewProxy()
const;
87 void resetCenterOfRotation();
90 bool getOrientationAxesVisibility()
const;
93 bool getOrientationAxesInteractivity()
const;
96 QColor getOrientationAxesLabelColor()
const;
99 QColor getOrientationAxesOutlineColor()
const;
104 {
return this->ResetCenterWithCamera; }
108 {
return this->UseMultipleRepresentationSelection; }
111 bool getCenterAxesVisibility()
const;
114 void getCenterOfRotation(
double center[3])
const;
134 void clearUndoStack();
137 void resetViewDirection(
138 double look_x,
double look_y,
double look_z,
139 double up_x,
double up_y,
double up_z);
145 virtual void setCursor(
const QCursor &);
165 void selectFrustum(
int rectangle[4]);
166 void selectFrustumPoints(
int rectangle[4]);
182 void updateInteractionMode(
int mode);
186 void setOrientationAxesVisibility(
bool visible);
189 void setOrientationAxesInteractivity(
bool interactive);
192 void setOrientationAxesLabelColor(
const QColor&);
195 void setOrientationAxesOutlineColor(
const QColor&);
201 void setCenterOfRotation(
double x,
double y,
double z);
204 this->setCenterOfRotation(xyz[0], xyz[1], xyz[2]);
208 void setCenterAxesVisibility(
bool visible);
213 { this->ResetCenterWithCamera = b;}
217 { this->UseMultipleRepresentationSelection = b;}
220 void linkToOtherView();
232 { this->onResetCameraEvent(); }
240 void onResetCameraEvent();
244 void onUndoStackChanged();
247 void onInteractionModeChange();
258 void fakeUndoRedo(
bool redo,
bool self);
263 void fakeInteraction(
bool start);
273 pqInternal* Internal;
274 void selectOnSurfaceInternal(
int rect[4], QList<pqOutputPort*>&,
275 bool select_points,
int selectionModifier,
bool select_blocks);
276 void selectPolygonInternal(vtkIntArray* polygon, QList<pqOutputPort*>&,
277 bool select_points,
int selectionModifier,
bool select_blocks);
279 void emitSelectionSignal(QList<pqOutputPort*>);
280 void collectSelectionPorts(vtkCollection* selectedRepresentations,
281 vtkCollection* selectionSources, QList<pqOutputPort*> &pqPorts,
282 int selectionModifier,
bool select_blocks);
284 void InternalConstructor(vtkSMViewProxy *renModule);
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
virtual void resetCamera()=0
Resets the camera to include all visible data.
void setUseMultipleRepresentationSelection(bool b)
Set whether selection will be done on multiple representations.
bool getResetCenterWithCamera() const
Get whether resetCamera() resets the center of rotation as well.
virtual void redo()
Called to redo interaction.
bool UseMultipleRepresentationSelection
bool getUseMultipleRepresentationSelection() const
Get whether selection will be done on multiple representations.
void resetCenterOfRotationIfNeeded()
Resets center of rotation if this->ResetCenterWithCamera is true.
void setCenterOfRotation(double xyz[3])
virtual bool canUndo() const
Returns true if undo can be done.
void setResetCenterWithCamera(bool b)
Get/Set whether resetCamera() resets the center of rotation as well.
virtual bool canRedo() const
Returns true if redo can be done.
pqRenderViewBase is an abstract base class for all render-view based views.
virtual void undo()
Called to undo interaction.
bool ResetCenterWithCamera
virtual bool supportsUndo() const
Returns if this view module can support undo/redo.
virtual void initialize()
Use this method to initialize the pqObject state using the underlying vtkSMProxy. ...
virtual QWidget * createWidget()
Creates a new instance of the QWidget subclass to be used to show this view.
static QString renderViewType()
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...