#include <SMESHGUI_ClippingDlg.h>

Public Member Functions | |
| vtkTypeMacro (OrientedPlane, vtkPlane) | |
| void | SetOrientation (SMESH::Orientation theOrientation) |
| SMESH::Orientation | GetOrientation () |
| void | SetDistance (float theDistance) |
| float | GetDistance () |
| void | ShallowCopy (OrientedPlane *theOrientedPlane) |
Static Public Member Functions | |
| static OrientedPlane * | New () |
| static OrientedPlane * | New (SVTK_ViewWindow *theViewWindow) |
Data Fields | |
| SMESH::Orientation | myOrientation |
| float | myDistance |
| double | myAngle [2] |
| vtkPlaneSource * | myPlaneSource |
| SALOME_Actor * | myActor |
Protected Member Functions | |
| OrientedPlane (SVTK_ViewWindow *theViewWindow) | |
| OrientedPlane () | |
| void | Init () |
| ~OrientedPlane () | |
Private Member Functions | |
| OrientedPlane (const OrientedPlane &) | |
| void | operator= (const OrientedPlane &) |
Private Attributes | |
| QPointer< SVTK_ViewWindow > | myViewWindow |
| vtkDataSetMapper * | myMapper |
Definition at line 67 of file SMESHGUI_ClippingDlg.h.
| SMESH.OrientedPlane::OrientedPlane | ( | SVTK_ViewWindow * | theViewWindow | ) | [protected] |
Definition at line 110 of file SMESHGUI_ClippingDlg.cxx.
References SMESH.OrientedPlane.Init(), SMESH.OrientedPlane.myActor, and SMESH.OrientedPlane.myViewWindow.
: myViewWindow(theViewWindow), myOrientation(SMESH::XY), myDistance(0.5) { Init(); myViewWindow->AddActor(myActor, false, false); // don't adjust actors }
| SMESH.OrientedPlane::OrientedPlane | ( | ) | [protected] |
Definition at line 119 of file SMESHGUI_ClippingDlg.cxx.
References SMESH.OrientedPlane.Init().
Referenced by SMESH.OrientedPlane.New().
: myOrientation(SMESH::XY), myViewWindow(NULL), myDistance(0.5) { Init(); }
| SMESH.OrientedPlane::~OrientedPlane | ( | ) | [protected] |
Definition at line 159 of file SMESHGUI_ClippingDlg.cxx.
{
if (myViewWindow)
myViewWindow->RemoveActor(myActor);
myActor->Delete();
myMapper->RemoveAllInputs();
myMapper->Delete();
// commented: porting to vtk 5.0
// myPlaneSource->UnRegisterAllOutputs();
myPlaneSource->Delete();
}
| SMESH.OrientedPlane.OrientedPlane | ( | const OrientedPlane & | ) | [private] |
| float SMESH.OrientedPlane.GetDistance | ( | ) |
Definition at line 88 of file SMESHGUI_ClippingDlg.h.
References SMESH.OrientedPlane.myDistance.
Referenced by SMESHGUI_ClippingDlg.onSelectPlane(), SMESH.OrientedPlane.ShallowCopy(), and SMESHGUI.storeVisualParameters().
{ return myDistance; }
| SMESH::Orientation SMESH.OrientedPlane.GetOrientation | ( | ) |
Definition at line 85 of file SMESHGUI_ClippingDlg.h.
References SMESH.OrientedPlane.myOrientation.
Referenced by SMESHGUI_ClippingDlg.onSelectPlane(), SMESH.OrientedPlane.ShallowCopy(), and SMESHGUI.storeVisualParameters().
{ return myOrientation; }
| void SMESH.OrientedPlane::Init | ( | ) | [protected] |
Definition at line 127 of file SMESHGUI_ClippingDlg.cxx.
References SMESH.GetColor().
Referenced by SMESH.OrientedPlane.OrientedPlane().
{
myPlaneSource = vtkPlaneSource::New();
myAngle[0] = myAngle[1] = 0.0;
// Create and display actor
myMapper = vtkDataSetMapper::New();
myMapper->SetInput(myPlaneSource->GetOutput());
myActor = SALOME_Actor::New();
myActor->VisibilityOff();
myActor->PickableOff();
myActor->SetInfinitive(true);
myActor->SetMapper(myMapper);
vtkFloatingPointType anRGB[3];
vtkProperty* aProp = vtkProperty::New();
SMESH::GetColor( "SMESH", "fill_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
aProp->SetOpacity(0.75);
myActor->SetProperty(aProp);
aProp->Delete();
vtkProperty* aBackProp = vtkProperty::New();
SMESH::GetColor( "SMESH", "backface_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 0, 255 ) );
aBackProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
aBackProp->SetOpacity(0.75);
myActor->SetBackfaceProperty(aBackProp);
aBackProp->Delete();
}
| SMESH::OrientedPlane * SMESH.OrientedPlane::New | ( | ) | [static] |
Definition at line 83 of file SMESHGUI_ClippingDlg.cxx.
References SMESH.OrientedPlane.OrientedPlane().
Referenced by SMESHGUI_ClippingDlg.AddPlane(), SMESHGUI_ClippingDlg.ClickOnApply(), and SMESHGUI_ClippingDlg.ClickOnNew().
{
return new OrientedPlane();
}
| SMESH::OrientedPlane * SMESH.OrientedPlane::New | ( | SVTK_ViewWindow * | theViewWindow | ) | [static] |
Definition at line 88 of file SMESHGUI_ClippingDlg.cxx.
{
return new OrientedPlane(theViewWindow);
}
| void SMESH.OrientedPlane.operator= | ( | const OrientedPlane & | ) | [private] |
| void SMESH.OrientedPlane.SetDistance | ( | float | theDistance | ) |
Definition at line 87 of file SMESHGUI_ClippingDlg.h.
References SMESH.OrientedPlane.myDistance.
Referenced by SMESHGUI_ClippingDlg.AddPlane(), and SMESHGUI_ClippingDlg.SetCurrentPlaneParam().
{ myDistance = theDistance; }
| void SMESH.OrientedPlane.SetOrientation | ( | SMESH::Orientation | theOrientation | ) |
Definition at line 84 of file SMESHGUI_ClippingDlg.h.
References SMESH.OrientedPlane.myOrientation.
Referenced by SMESHGUI_ClippingDlg.AddPlane(), and SMESHGUI_ClippingDlg.SetCurrentPlaneParam().
{ myOrientation = theOrientation; }
| void SMESH.OrientedPlane::ShallowCopy | ( | SMESH::OrientedPlane * | theOrientedPlane | ) |
Definition at line 93 of file SMESHGUI_ClippingDlg.cxx.
References SMESH.OrientedPlane.GetDistance(), SMESH.OrientedPlane.GetOrientation(), SMESH.OrientedPlane.myAngle, and SMESH.OrientedPlane.myPlaneSource.
Referenced by SMESHGUI_ClippingDlg.ClickOnApply().
{
SetNormal(theOrientedPlane->GetNormal());
SetOrigin(theOrientedPlane->GetOrigin());
myOrientation = theOrientedPlane->GetOrientation();
myDistance = theOrientedPlane->GetDistance();
myAngle[0] = theOrientedPlane->myAngle[0];
myAngle[1] = theOrientedPlane->myAngle[1];
myPlaneSource->SetNormal(theOrientedPlane->myPlaneSource->GetNormal());
myPlaneSource->SetOrigin(theOrientedPlane->myPlaneSource->GetOrigin());
myPlaneSource->SetPoint1(theOrientedPlane->myPlaneSource->GetPoint1());
myPlaneSource->SetPoint2(theOrientedPlane->myPlaneSource->GetPoint2());
}
| SMESH.OrientedPlane.vtkTypeMacro | ( | OrientedPlane | , |
| vtkPlane | |||
| ) |
Definition at line 82 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESH.OrientedPlane.OrientedPlane(), and SMESHGUI_ClippingDlg.SetCurrentPlaneParam().
| double SMESH.OrientedPlane.myAngle[2] |
Definition at line 79 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESHGUI_ClippingDlg.AddPlane(), SMESHGUI_ClippingDlg.onSelectPlane(), SMESHGUI_ClippingDlg.SetCurrentPlaneParam(), SMESH.OrientedPlane.ShallowCopy(), and SMESHGUI.storeVisualParameters().
Definition at line 78 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESH.OrientedPlane.GetDistance(), and SMESH.OrientedPlane.SetDistance().
vtkDataSetMapper* SMESH.OrientedPlane.myMapper [private] |
Definition at line 70 of file SMESHGUI_ClippingDlg.h.
Definition at line 77 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESH.OrientedPlane.GetOrientation(), and SMESH.OrientedPlane.SetOrientation().
| vtkPlaneSource* SMESH.OrientedPlane.myPlaneSource |
Definition at line 81 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESHGUI_ClippingDlg.AddPlane(), SMESHGUI_ClippingDlg.SetCurrentPlaneParam(), and SMESH.OrientedPlane.ShallowCopy().
QPointer<SVTK_ViewWindow> SMESH.OrientedPlane.myViewWindow [private] |
Definition at line 69 of file SMESHGUI_ClippingDlg.h.
Referenced by SMESH.OrientedPlane.OrientedPlane().