static int MYDEBUG = 0;
#endif
+//----------------------------------------------------------------
+vtkStandardNewMacro( VISU_OutsideCursorSettings );
+
+//----------------------------------------------------------------
+VISU_OutsideCursorSettings::VISU_OutsideCursorSettings()
+{
+ this->MainTexture = NULL;
+ this->AlphaTexture = NULL;
+}
+
+VISU_OutsideCursorSettings::~VISU_OutsideCursorSettings()
+{
+ this->SetMainTexture( NULL );
+ this->SetAlphaTexture( NULL );
+}
//============================================================================
vtkStandardNewMacro(VISU_GaussPtsAct);
return myChangeMagnification;
}
+//----------------------------------------------------------------
+void
+VISU_GaussPtsAct
+::SetOutsideCursorSettings(VISU_OutsideCursorSettings* theOutsideCursorSettings)
+{
+ myOutsideCursorSettings = theOutsideCursorSettings;
+}
+
+//----------------------------------------------------------------
+void
+VISU_GaussPtsAct
+::UpdateOutsideCursorSettings()
+{
+ // update actor from myOutsideCursorSettings
+}
//----------------------------------------------------------------------------
namespace
class vtkInteractorObserver;
class vtkCallbackCommand;
+class VTKOCC_EXPORT VISU_OutsideCursorSettings : public vtkObject
+{
+ public:
+ vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject );
+
+ VISU_OutsideCursorSettings();
+ virtual ~VISU_OutsideCursorSettings();
+
+ static
+ VISU_OutsideCursorSettings*
+ New();
+
+ vtkSetMacro( Clamp, float );
+ vtkGetMacro( Clamp, float );
+
+ vtkSetStringMacro( MainTexture );
+ vtkGetStringMacro( MainTexture );
+
+ vtkSetStringMacro( AlphaTexture );
+ vtkGetStringMacro( AlphaTexture );
+
+ vtkSetMacro( AlphaThreshold, float );
+ vtkGetMacro( AlphaThreshold, float );
+
+ vtkSetMacro( Size, float );
+ vtkGetMacro( Size, float );
+
+ vtkSetVector3Macro( Color, float );
+ vtkGetVector3Macro( Color, float );
+
+private:
+ float Clamp;
+ char* MainTexture;
+ char* AlphaTexture;
+ float AlphaThreshold;
+ float Size;
+ float Color[3];
+};
+
//----------------------------------------------------------------------------
class VTKOCC_EXPORT VISU_GaussPtsAct : public VISU_ScalarMapAct
{
void
SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget);
+ void
+ SetOutsideCursorSettings(VISU_OutsideCursorSettings* theOutsideCursorSettings);
+
+ void
+ UpdateOutsideCursorSettings();
+
bool
ChangeMagnification();
vtkSmartPointer<vtkUnstructuredGrid> myCellSource;
vtkSmartPointer<vtkActor> myCellActor;
+
+ vtkSmartPointer<VISU_OutsideCursorSettings> myOutsideCursorSettings;
};