src/PIPELINE/VISU_CutLinesPL.hxx

Go to the documentation of this file.
00001 //  VISU OBJECT : interactive object for VISU entities implementation
00002 //
00003 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00005 // 
00006 //  This library is free software; you can redistribute it and/or 
00007 //  modify it under the terms of the GNU Lesser General Public 
00008 //  License as published by the Free Software Foundation; either 
00009 //  version 2.1 of the License. 
00010 // 
00011 //  This library is distributed in the hope that it will be useful, 
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00014 //  Lesser General Public License for more details. 
00015 // 
00016 //  You should have received a copy of the GNU Lesser General Public 
00017 //  License along with this library; if not, write to the Free Software 
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00019 // 
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //
00023 // File:    VISU_PipeLine.hxx
00024 // Author:  Alexey PETROV
00025 // Module : VISU
00026 
00027 #ifndef VISU_CutLinesPL_HeaderFile
00028 #define VISU_CutLinesPL_HeaderFile
00029 
00030 #include "VISU_CutPlanesPL.hxx"
00031 
00032 class vtkAppendPolyData;
00033 
00034 class VISU_CutLinesPL : public VISU_CutPlanesPL{
00035 protected:
00036   VISU_CutLinesPL();
00037   VISU_CutLinesPL(const VISU_CutLinesPL&);
00038 public:
00039   vtkTypeMacro(VISU_CutLinesPL,VISU_CutPlanesPL);
00040 
00041   static 
00042   VISU_CutLinesPL* 
00043   New();
00044 
00045   virtual
00046   void
00047   ShallowCopy(VISU_PipeLine *thePipeLine);
00048 
00049   virtual
00050   void
00051   SetPosition(vtkFloatingPointType thePosition);
00052 
00053   virtual
00054   vtkFloatingPointType 
00055   GetPosition();
00056 
00057   virtual
00058   void
00059   SetDefault();
00060 
00061   virtual
00062   int
00063   IsDefault();
00064 
00065 public:
00066   virtual
00067   void
00068   Init();
00069 
00070   virtual
00071   void
00072   Update();
00073 
00074   static
00075   void
00076   CutWithPlanes(vtkAppendPolyData* theAppendPolyData, 
00077           vtkDataSet* theDataSet,
00078           int theNbPlanes, 
00079           vtkFloatingPointType theDir[3], 
00080           vtkFloatingPointType theBounds[6], 
00081           vtkFloatingPointType thePlanePosition, 
00082           int thePlaneCondition,
00083           vtkFloatingPointType theDisplacement);
00084 
00085   const vtkFloatingPointType* 
00086   GetDirLn()
00087   {
00088     return myDirLn;
00089   }
00090 
00091   const vtkFloatingPointType* 
00092   GetRealDirLn()
00093   {
00094     return myRealDirLn;
00095   }
00096 
00097   const vtkFloatingPointType* 
00098   GetBoundPrjLn()
00099   {
00100     return myBoundPrjLn;
00101   }
00102 
00103   const vtkFloatingPointType* 
00104   GetBasePnt()
00105   { 
00106     return myBasePnt;
00107   }
00108 
00109 protected:
00110   vtkFloatingPointType myDirLn[3];
00111   vtkFloatingPointType myRealDirLn[3];
00112   vtkFloatingPointType myBoundPrjLn[3];
00113   vtkFloatingPointType myBasePnt[3];
00114   vtkFloatingPointType myPosition;
00115   int myCondition;
00116 };
00117 
00118 
00119 #endif