myCursorPyramid->AddToRender(theRenderer);
myCursorPyramidSelected->AddToRender(theRenderer);
myScalarBarCtrl->AddToRender(theRenderer);
+
+ SetPickingSettings( VISU_PickingSettings::Get() );
}
void
}
//----------------------------------------------------------------
+VISU_PickingSettings* VISU_PickingSettings::Get()
+{
+ static VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::New();
+ return aPickingSettings;
+}
+
VISU_PickingSettings::VISU_PickingSettings()
{
this->Initial = true;
public:
vtkTypeMacro( VISU_PickingSettings, vtkObject );
- VISU_PickingSettings();
- virtual ~VISU_PickingSettings();
+ static
+ VISU_PickingSettings*
+ Get();
static
VISU_PickingSettings*
vtkSetMacro( DisplayParentMesh, bool );
vtkGetMacro( DisplayParentMesh, bool );
+private:
+ VISU_PickingSettings();
+ virtual ~VISU_PickingSettings();
+
private:
bool Initial;