connect( th, SIGNAL( clicked(int)), this, SLOT( setDefault(int) ) );
// default values
- myCutPlanes = NULL;
hasInit = false;
X1 = 0; X2 = 0;
Y1 = 0; Y2 = 0;
VisuGUI_CutPlanesPane::~VisuGUI_CutPlanesPane()
{
deletePlanes();
- if (myCutPlanes)
- myCutPlanes->Destroy();
if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow<SVTK_ViewWindow>())
vf->Repaint();
}
void VisuGUI_CutPlanesPane::createPlanes()
{
if (VISU::GetActiveViewWindow<SVTK_ViewWindow>() == NULL) return;
- if (myCutPlanes == NULL) return;
+ if (!myCutPlanes) return;
if (myPreviewActor != 0) return;
vtkAppendPolyData* aPolyData = myCutPlanes->GetSpecificPL()->GetAppendPolyData();
*/
void VisuGUI_CutPlanesPane::DrawTable()
{
- if (myCutPlanes == NULL) return;
+ if (!myCutPlanes) return;
if (!hasInit) return;
int aNbRows = myPosTable->numRows();
void VisuGUI_CutPlanesPane::onRotation (double theValue)
{
- if (myCutPlanes == NULL) return;
+ if (!myCutPlanes) return;
if (myPreviewCheck->isChecked()) {
if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow<SVTK_ViewWindow>()) {
myCutPlanes->SetOrientation(getOrientaion(),getRotation1()*PI/180.,getRotation2()*PI/180.);