From 6406b372299cd4d4a3548b5e6341945e12875d74 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 5 Oct 2005 16:02:28 +0000 Subject: [PATCH] To separate GaussPoints Actor and Setting interafaces --- src/OBJECT/Makefile.in | 1 + src/OBJECT/VISU_GaussPtsAct.cxx | 29 -------------- src/OBJECT/VISU_GaussPtsSettings.cxx | 59 ++++++++++++++++++++++++++++ src/OBJECT/VISU_GaussPtsSettings.h | 3 +- 4 files changed, 62 insertions(+), 30 deletions(-) create mode 100644 src/OBJECT/VISU_GaussPtsSettings.cxx diff --git a/src/OBJECT/Makefile.in b/src/OBJECT/Makefile.in index 710dd7db..963db782 100644 --- a/src/OBJECT/Makefile.in +++ b/src/OBJECT/Makefile.in @@ -50,6 +50,7 @@ LIB_SRC = \ VISU_MeshAct.cxx \ VISU_ScalarMapAct.cxx \ VISU_GaussPtsDeviceActor.cxx \ + VISU_GaussPtsSettings.cxx \ VISU_GaussPtsAct.cxx \ VISU_VectorsAct.cxx diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 8f4d9134..a7c686cf 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -83,35 +83,6 @@ static int MYDEBUG2 = 0; #endif -//---------------------------------------------------------------- -vtkStandardNewMacro( VISU_OutsideCursorSettings ); -vtkStandardNewMacro( VISU_PickingSettings ); - -//---------------------------------------------------------------- -VISU_OutsideCursorSettings::VISU_OutsideCursorSettings() -{ - this->Initial = true; - - this->Texture = NULL; -} - -VISU_OutsideCursorSettings::~VISU_OutsideCursorSettings() -{ - this->SetTexture( NULL ); -} - -//---------------------------------------------------------------- -VISU_PickingSettings::VISU_PickingSettings() -{ - this->Initial = true; -} - -VISU_PickingSettings::~VISU_PickingSettings() -{ -} - - - //============================================================================ vtkStandardNewMacro(VISU_GaussPtsAct); diff --git a/src/OBJECT/VISU_GaussPtsSettings.cxx b/src/OBJECT/VISU_GaussPtsSettings.cxx new file mode 100644 index 00000000..de9877a6 --- /dev/null +++ b/src/OBJECT/VISU_GaussPtsSettings.cxx @@ -0,0 +1,59 @@ +// VISU OBJECT : interactive object for VISU entities implementation +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : +// Author : +// Module : VISU +// $Header$ + +#include "VISU_GaussPtsSettings.h" + +#include +#include + +//---------------------------------------------------------------- +vtkStandardNewMacro( VISU_OutsideCursorSettings ); +vtkStandardNewMacro( VISU_PickingSettings ); + +//---------------------------------------------------------------- +VISU_OutsideCursorSettings::VISU_OutsideCursorSettings() +{ + this->Initial = true; + + this->Texture = NULL; +} + +VISU_OutsideCursorSettings::~VISU_OutsideCursorSettings() +{ + this->SetTexture( NULL ); +} + +//---------------------------------------------------------------- +VISU_PickingSettings::VISU_PickingSettings() +{ + this->Initial = true; +} + +VISU_PickingSettings::~VISU_PickingSettings() +{ +} diff --git a/src/OBJECT/VISU_GaussPtsSettings.h b/src/OBJECT/VISU_GaussPtsSettings.h index ebe66525..a8cc2b30 100644 --- a/src/OBJECT/VISU_GaussPtsSettings.h +++ b/src/OBJECT/VISU_GaussPtsSettings.h @@ -29,6 +29,7 @@ #ifndef VISU_GaussPtsSettings_HeaderFile #define VISU_GaussPtsSettings_HeaderFile +#include #include class vtkImageData; @@ -41,7 +42,7 @@ namespace VISU const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 200; } -class VTKOCC_EXPORT VISU_OutsideCursorSettings : public vtkObject +class VISU_OutsideCursorSettings : public vtkObject { public: vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject ); -- 2.39.2