Version: 6.3.1

src/PIPELINE/VISU_CutSegmentPL.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // File:    VISU_CutSegmentPL.hxx
00021 // Author:  Oleg UVAROV
00022 // Module : VISU
00023 //
00024 #ifndef VISU_CutSegmentPL_HeaderFile
00025 #define VISU_CutSegmentPL_HeaderFile
00026 
00027 #include "VISUPipeline.hxx"
00028 #include "VISU_CutLinesBasePL.hxx"
00029 
00030 
00031 //----------------------------------------------------------------------------
00032 class VISU_PIPELINE_EXPORT VISU_CutSegmentPL : public VISU_CutLinesBasePL
00033 {
00034 public:
00035   vtkTypeMacro(VISU_CutSegmentPL,VISU_CutLinesBasePL);
00036 
00037   static 
00038   VISU_CutSegmentPL* 
00039   New();
00040 
00041   virtual 
00042   void
00043   SetPoint1(vtkFloatingPointType theX,
00044             vtkFloatingPointType theY,
00045             vtkFloatingPointType theZ);
00046 
00047   virtual 
00048   void
00049   GetPoint1(vtkFloatingPointType& theX,
00050             vtkFloatingPointType& theY,
00051             vtkFloatingPointType& theZ);
00052 
00053   virtual 
00054   void
00055   SetPoint2(vtkFloatingPointType theX,
00056             vtkFloatingPointType theY,
00057             vtkFloatingPointType theZ);
00058 
00059   virtual 
00060   void
00061   GetPoint2(vtkFloatingPointType& theX,
00062             vtkFloatingPointType& theY,
00063             vtkFloatingPointType& theZ);
00064 
00065 public:
00066   virtual
00067   void
00068   Init();
00069 
00070   vtkDataSet*
00071   InsertCustomPL();
00072 
00073   virtual
00074   void
00075   Update();
00076 
00077 protected:
00078   VISU_CutSegmentPL();
00079 
00080   virtual
00081   void
00082   DoShallowCopy(VISU_PipeLine *thePipeLine,
00083                 bool theIsCopyInput);
00084 
00085   vtkFloatingPointType myPoint1[3];
00086   vtkFloatingPointType myPoint2[3];
00087 
00088 private:
00089   VISU_CutSegmentPL(const VISU_CutSegmentPL&);  // Not implemented.
00090   void operator=(const VISU_CutSegmentPL&);  // Not implemented.
00091 };
00092 
00093 
00094 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS