Version: 9.12.0
SMESHGUI_MeshEditPreview Class Reference

Displayer of the mesh edition preview. More...

#include <SMESHGUI_MeshEditPreview.h>

Public Member Functions

 SMESHGUI_MeshEditPreview (SVTK_ViewWindow *)
 Constructor. More...
 
 ~SMESHGUI_MeshEditPreview ()
 Destroy. More...
 
void SetData (const SMESH::MeshPreviewStruct &)
 Set preview data. More...
 
void SetVisibility (bool)
 Set visibility. More...
 
void SetColor (double, double, double)
 Set preview color. More...
 
void SetArrowShapeAndNb (int nbArrows, double headLength, double headRadius, double start=0., const char *labels=0)
 Set shape of an arrow of a unit length and nb of arrows. More...
 
void SetArrows (const gp_Ax1 *axes, double length)
 Set data to show moved/rotated/scaled arrows. More...
 
SALOME_ActorGetActor () const
 Get preview actor. More...
 
vtkUnstructuredGridGetGrid () const
 Returns the priewed vtkUnstructuredGrid. More...
 
SVTK_ViewWindow * GetViewWindow () const
 Returns myViewWindow. More...
 

Private Attributes

SVTK_ViewWindow * myViewWindow
 
vtkUnstructuredGridmyGrid
 
SALOME_ActormyPreviewActor
 
std::vector< gp_Pnt > myUnitArrowPnts
 
std::vector< vtkTextActor * > myLabelActors
 

Detailed Description

Displayer of the mesh edition preview.

Constructor & Destructor Documentation

◆ SMESHGUI_MeshEditPreview()

SMESHGUI_MeshEditPreview::SMESHGUI_MeshEditPreview ( SVTK_ViewWindow *  theViewWindow)

◆ ~SMESHGUI_MeshEditPreview()

SMESHGUI_MeshEditPreview::~SMESHGUI_MeshEditPreview ( )

Destroy.

References myGrid, myLabelActors, myPreviewActor, and myViewWindow.

Member Function Documentation

◆ GetActor()

◆ GetGrid()

vtkUnstructuredGrid * SMESHGUI_MeshEditPreview::GetGrid ( ) const

Returns the priewed vtkUnstructuredGrid.

References myGrid.

Referenced by SMESHGUI_SplitVolumesDlg::updateNormalPreview().

◆ GetViewWindow()

SVTK_ViewWindow * SMESHGUI_MeshEditPreview::GetViewWindow ( ) const

Returns myViewWindow.

References myViewWindow.

◆ SetArrows()

void SMESHGUI_MeshEditPreview::SetArrows ( const gp_Ax1 *  axes,
double  length 
)

Set data to show moved/rotated/scaled arrows.

Parameters
[in]axes- location and direction of the arrows
[in]length- length of arrows

References myGrid, myLabelActors, and myUnitArrowPnts.

Referenced by StdMeshersGUI_CartesianParamCreator::updateAxesPreview(), and SMESHGUI_SplitVolumesDlg::updateNormalPreview().

◆ SetArrowShapeAndNb()

void SMESHGUI_MeshEditPreview::SetArrowShapeAndNb ( int  nbArrows,
double  headLength,
double  headRadius,
double  start = 0.,
const char *  labels = 0 
)

◆ SetColor()

void SMESHGUI_MeshEditPreview::SetColor ( double  R,
double  G,
double  B 
)

Set preview color.

References myPreviewActor.

Referenced by SMESHGUI_MeshEditPreview().

◆ SetData()

◆ SetVisibility()

Field Documentation

◆ myGrid

◆ myLabelActors

std::vector<vtkTextActor*> SMESHGUI_MeshEditPreview::myLabelActors
private

◆ myPreviewActor

◆ myUnitArrowPnts

std::vector<gp_Pnt> SMESHGUI_MeshEditPreview::myUnitArrowPnts
private

Referenced by SetArrows(), and SetArrowShapeAndNb().

◆ myViewWindow

SVTK_ViewWindow* SMESHGUI_MeshEditPreview::myViewWindow
private