From 4a4adcfe775591734267e6555efcc163ec8f71fb Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 30 Aug 2005 12:53:57 +0000 Subject: [PATCH] To introduce corresponding type of Actor for Gauss Points presentation --- src/OBJECT/Makefile.in | 14 ++++++- src/OBJECT/VISU_GaussPtsAct.cxx | 65 +++++++++++++++++++++++++++++++++ src/OBJECT/VISU_GaussPtsAct.h | 54 +++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 src/OBJECT/VISU_GaussPtsAct.cxx create mode 100644 src/OBJECT/VISU_GaussPtsAct.h diff --git a/src/OBJECT/Makefile.in b/src/OBJECT/Makefile.in index 58ee6a62..dceb3573 100644 --- a/src/OBJECT/Makefile.in +++ b/src/OBJECT/Makefile.in @@ -32,12 +32,22 @@ VPATH=.:@srcdir@:@top_srcdir@/idl @COMMENCE@ -EXPORT_HEADERS = VISU_Actor.h VISU_MeshAct.h VISU_ScalarMapAct.h VISU_VectorsAct.h +EXPORT_HEADERS = \ + VISU_Actor.h \ + VISU_MeshAct.h \ + VISU_ScalarMapAct.h \ + VISU_GaussPtsAct.h \ + VISU_VectorsAct.h # Libraries targets LIB = libVisuObject.la -LIB_SRC = VISU_Actor.cxx VISU_MeshAct.cxx VISU_ScalarMapAct.cxx VISU_VectorsAct.cxx +LIB_SRC = \ + VISU_Actor.cxx \ + VISU_MeshAct.cxx \ + VISU_ScalarMapAct.cxx \ + VISU_GaussPtsAct.cxx \ + VISU_VectorsAct.cxx LIB_CLIENT_IDL = diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx new file mode 100644 index 00000000..8de55fe3 --- /dev/null +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -0,0 +1,65 @@ +// 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 : VISU_MeshAct.hxx +// Author : Laurent CORNABE with the help of Nicolas REJNERI +// Module : VISU +// $Header$ + +#include "VISU_GaussPtsAct.h" +#include "VISU_GaussPointsPL.hxx" + +#include + +vtkStandardNewMacro(VISU_GaussPtsAct); + +VISU_GaussPtsAct +::VISU_GaussPtsAct(): + myGaussPointsPL(NULL) +{} + +VISU_GaussPtsAct +::~VISU_GaussPtsAct() +{} + +void +VISU_GaussPtsAct +::AddToRender(vtkRenderer* theRenderer) +{ + Superclass::AddToRender(theRenderer); +} + +void +VISU_GaussPtsAct +::RemoveFromRender(vtkRenderer* theRenderer) +{ + Superclass::RemoveFromRender(theRenderer); +} + +void +VISU_GaussPtsAct +::SetPipeLine(VISU_PipeLine* thePipeLine) +{ + myGaussPointsPL = dynamic_cast(thePipeLine); + Superclass::SetPipeLine(thePipeLine); +} diff --git a/src/OBJECT/VISU_GaussPtsAct.h b/src/OBJECT/VISU_GaussPtsAct.h new file mode 100644 index 00000000..625eb47f --- /dev/null +++ b/src/OBJECT/VISU_GaussPtsAct.h @@ -0,0 +1,54 @@ +// 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 : VISU_ScalarMapAct.h +// Author : Laurent CORNABE with help of Nicolas REJNERI +// Module : VISU +// $Header$ + +#ifndef VISU_GaussPtsAct_HeaderFile +#define VISU_GaussPtsAct_HeaderFile + +#include "VISU_ScalarMapAct.h" + +class VISU_GaussPointsPL; + +class VTKOCC_EXPORT VISU_GaussPtsAct : public VISU_ScalarMapAct +{ + public: + vtkTypeMacro(VISU_GaussPtsAct,VISU_ScalarMapAct); + static VISU_GaussPtsAct* New(); + + virtual void SetPipeLine(VISU_PipeLine* thePipeLine) ; + + virtual void AddToRender(vtkRenderer* theRenderer); + virtual void RemoveFromRender(vtkRenderer* theRenderer); + + protected: + VISU_GaussPtsAct(); + virtual ~VISU_GaussPtsAct(); + + VISU_GaussPointsPL* myGaussPointsPL; +}; + +#endif -- 2.39.2