//============================================================================
+//! Base class for Gauss Points Actors.
+/*!
+ * Contains device actor (VISU_GaussPtsDeviceActor),
+ * which has two representation modes - outside and
+ * inside segmentation cursor.
+ */
class VTKOCC_EXPORT VISU_GaussPtsAct : public VISU_Actor
{
public:
ShallowCopyPL(VISU_PipeLine* thePipeLine);
//----------------------------------------------------------------------------
+ //! Redefined method of getting a native mapper of the actor.
virtual
vtkMapper*
GetMapper();
+ //! Redefined method of getting an actor bounds.
virtual
float*
GetBounds();
+ //! Redefined method of getting an actor input.
virtual
vtkDataSet*
GetInput();
GetGaussPtsFactory();
//----------------------------------------------------------------------------
+ //! Add actor to the renderer.
virtual
void
AddToRender(vtkRenderer* theRenderer);
+ //! Remove actor from the renderer.
virtual
void
RemoveFromRender(vtkRenderer* theRenderer);
+ //! Set the Render Window Interactor to the actor.
virtual
void
SetInteractor(vtkRenderWindowInteractor* theInteractor);
+ //! Apply the transform on the actor.
virtual
void
SetTransform(VTKViewer_Transform* theTransform);
+ //! Redefined method of rendering the Opaque Geometry.
virtual
int
RenderOpaqueGeometry(vtkViewport *viewport);
+ //! Redefined method of rendering the Translucent Geometry.
virtual
int
RenderTranslucentGeometry(vtkViewport *viewport);
//----------------------------------------------------------------------------
+ //! Set actor visibility.
virtual
void
SetVisibility(int theMode);
+ //! Set Scalar Bar Control to the actor.
VISU_ScalarBarCtrl*
GetScalarBarCtrl();
+ //! Set the Scalar Bar Control visibility.
void
SetBarVisibility(bool theMode);
+ //! Get the Scalar Bar Control visibility.
bool
GetBarVisibility();
+ //! Set Implicit Function Widget to the actor.
virtual
void
SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget);
+ //! Return the information about pipeline magnification changing.
+ /*! True indicates that magnification is increased, false - decreased. */
bool
ChangeMagnification();
//----------------------------------------------------------------------------
+ //! Internal highlight.
virtual
void
Highlight(bool theIsHighlight);
+ //! Redefined method of the actor's prehighlighting
virtual
bool
PreHighlight(vtkInteractorStyle* theInteractorStyle,
SVTK_SelectionEvent* theSelectionEvent,
bool theIsHighlight);
+
+ //! Redefined method of the actor's highlighting
virtual
bool
Highlight(vtkInteractorStyle* theInteractorStyle,
bool theIsHighlight);
//----------------------------------------------------------------------------
+ //! Set the picking settings to the actor.
void
SetPickingSettings(VISU_PickingSettings* thePickingSettings);
+ //! Apply the picking settings on the actor.
void
UpdatePickingSettings();
virtual
~VISU_GaussPtsAct();
+ // Redefined method of setting mapper input.
virtual
void
SetMapperInput(vtkDataSet* theDataSet);
//----------------------------------------------------------------------------
vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;
- // Main process VTK event method
+ //! Main process VTK event method
static
void
ProcessEvents(vtkObject* theObject,
unsigned long theEvent,
void* theClientData,
void* theCallData);
+
+ // To process VTK event method
virtual
void
OnInteractorEvent(unsigned long theEvent);
//============================================================================
class VISU_GaussPtsAct2;
+//! Gauss Points Actor, displayed in the Base View.
class VTKOCC_EXPORT VISU_GaussPtsAct1 : public VISU_GaussPtsAct
{
public:
ShallowCopyPL(VISU_PipeLine* thePipeLine);
//----------------------------------------------------------------------------
+ //! Set actor visibility.
virtual
void
SetVisibility(int theMode);
Connect(VISU_GaussPtsAct2* theActor);
//----------------------------------------------------------------------------
+ //! Set the Outside Cursor Gauss Points settings to the actor.
void
SetOutsideCursorSettings(VISU_OutsideCursorSettings* theOutsideCursorSettings);
+ //! Apply the Outside Cursor Gauss Points settings on the actor.
void
UpdateOutsideCursorSettings();
//----------------------------------------------------------------------------
+ //! Add actor to the renderer.
virtual
void
AddToRender(vtkRenderer* theRenderer);
+ //! Remove actor from the renderer.
virtual
void
RemoveFromRender(vtkRenderer* theRenderer);
+ //! Apply the transform on the actor.
virtual
void
SetTransform(VTKViewer_Transform* theTransform);
+ //! Set Implicit Function Widget to the actor.
virtual
void
SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget);
virtual
~VISU_GaussPtsAct1();
+ // Redefined method of setting mapper input.
virtual
void
SetMapperInput(vtkDataSet* theDataSet);
};
-//============================================================================
+//! Gauss Points Actor, displayed in the Segmented View.
class VTKOCC_EXPORT VISU_GaussPtsAct2 : public VISU_GaussPtsAct
{
public:
VISU_GaussPtsAct2*
New();
+ // Redefined method of setting mapper input.
virtual
void
SetMapperInput(vtkDataSet* theDataSet);
ShallowCopyPL(VISU_PipeLine* thePipeLine);
//----------------------------------------------------------------------------
+ //! Set actor visibility.
virtual
void
SetVisibility(int theMode);
+ //! Get actor visibility.
virtual
int
GetVisibility();
+ //! Set Implicit Function Widget to the actor.
virtual
void
SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget);
class VISU_OutsideCursorSettings;
class VISU_ImplicitFunctionWidget;
+//! Segmentation Cursor Dialog.
+/*!
+ * Uses for set up Segmentation and Outside Cursor Gauss Points preferenses
+ * and apply them to all actors in the current renderer.
+ */
class VVTK_SegmentationCursorDlg : public QDialog
{
Q_OBJECT
VVTK_SegmentationCursorDlg( QWidget* parent = 0, const char* name = 0 );
~VVTK_SegmentationCursorDlg();
+ //! Make an actor to listen the event of Update Ouside Cursor Settings event.
void AddActor( VISU_GaussPtsAct1* );
void RemoveActor( VISU_GaussPtsAct1* );
+ //! Set the Implicit Function Widget.
void SetWidget( VISU_ImplicitFunctionWidget* );
+
+ //! Used to switch toggle state of the Segmentation action.
void SetAction( QtxAction* theAction ) { myAction = theAction; }
+ //! Update contents of the Segmentation tab.
void UpdateSegmentation();
+ //! Update contents of the Outside Cursor tab.
void UpdateOutsideCursor();
VISU_OutsideCursorSettings* GetOutsideCursorSettings();