34 #ifndef vtkPVOrthographicSliceView_h 35 #define vtkPVOrthographicSliceView_h 39 class vtkPVOrthographicSliceViewInteractorStyle;
46 void PrintSelf(ostream& os, vtkIndent indent);
82 void SetSlicePosition(
double x,
double y,
double z);
83 vtkGetVector3Macro(SlicePosition,
double);
90 vtkSetVector3Macro(SliceIncrements,
double);
97 vtkSetMacro(SliceAnnotationsVisibility,
bool);
98 vtkGetMacro(SliceAnnotationsVisibility,
bool);
136 YZ_PLANE = SIDE_VIEW,
138 XY_PLANE = FRONT_VIEW,
140 AXIAL_VIEW = TOP_VIEW,
141 CORONAL_VIEW = FRONT_VIEW,
142 SAGITTAL_VIEW = SIDE_VIEW,
144 RIGHT_SIDE_VIEW = SIDE_VIEW
147 vtkNew<vtkRenderer> Renderers[3];
149 vtkNew<vtkPVCenterAxesActor> SlicePositionAxes2D[3];
151 vtkNew<vtkTextRepresentation> SliceAnnotations[3];
152 vtkSmartPointer<vtkPVGridAxes3DActor> GridAxes3DActors[3];
154 double SliceIncrements[3];
155 double SlicePosition[3];
162 void OnMouseWheelForwardEvent();
163 void OnMouseWheelBackwardEvent();
164 void MoveSlicePosition(vtkRenderer* ren,
double position[3]);
166 unsigned long MouseWheelForwardEventId;
167 unsigned long MouseWheelBackwardEventId;
169 friend class vtkPVOrthographicSliceViewInteractorStyle;
171 bool GridAxes3DActorsNeedShallowCopy;
172 unsigned long GridAxes3DActorObserverId;
173 void OnGridAxes3DActorModified();
static vtkPVMultiSliceView * New()
virtual void SetBackgroundTexture(vtkTexture *val)
virtual void SetRotationFactor(double factor)
void PrintSelf(ostream &os, vtkIndent indent)
virtual void Update()
Overridden to synchronize information among processes whenever data changes.
virtual void SetCenterOfRotation(double x, double y, double z)
void ResetCamera()
Resets the active camera using collective prop-bounds.
virtual void UpdateCenterAxes()
UpdateCenterAxes().
vtkNew< vtkPVOrthographicSliceViewInteractorStyle > OrthographicInteractorStyle
virtual void Initialize(unsigned int id)
Initialize the view with an identifier.
bool SliceAnnotationsVisibility
virtual void SetCenterAxesVisibility(bool)
To avoid confusion, we don't show the center axes at all in this view.
vtkPVMultiSliceView extends vtkPVRenderView but add meta-data informations used by SliceRepresentatio...
virtual void SetBackground(double r, double g, double b)
virtual void SetGradientBackground(int val)
virtual void AboutToRenderOnLocalProcess(bool interactive)
Called just before the local process renders.
virtual void SetInteractionMode(int mode)
Get/Set the interaction mode.
virtual vtkRenderer * GetRenderer(int rendererType=DEFAULT_RENDERER)
Returns the renderer given an int identifying its type.
vtkNew< vtkPVCenterAxesActor > SlicePositionAxes3D
virtual void SetTexturedBackground(int val)
virtual void SetGridAxes3DActor(vtkPVGridAxes3DActor *)
Set the vtkPVGridAxes3DActor to use for the view.
virtual void SetupInteractor(vtkRenderWindowInteractor *)
Set the interactor.
ParaView extensions for vtkGridAxes3DActor.
virtual void SetBackground2(double r, double g, double b)