Version: 6.3.1

src/VISU_I/VISU_Vectors_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  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 //  VISU OBJECT : interactive object for VISU entities implementation
00024 //  File   : VISU_PrsObject_i.hxx
00025 //  Author : Alexey PETROV
00026 //  Module : VISU
00027 //
00028 #ifndef VISU_Vectors_i_HeaderFile
00029 #define VISU_Vectors_i_HeaderFile
00030 
00031 #include "VISU_DeformedShape_i.hh"
00032 
00033 class VISU_VectorsPL;
00034 
00035 namespace VISU
00036 {
00037   //----------------------------------------------------------------------------
00038   class VISU_I_EXPORT Vectors_i : public virtual POA_VISU::Vectors,
00039                       public virtual DeformedShape_i
00040   {
00041     static int myNbPresent;
00042     Vectors_i(const Vectors_i&);
00043 
00044   public:
00045     //----------------------------------------------------------------------------
00046     typedef DeformedShape_i TSuperClass;
00047     typedef VISU::Vectors TInterface;
00048 
00049     explicit
00050     Vectors_i(EPublishInStudyMode thePublishInStudyModep);
00051 
00052     virtual
00053     void
00054     SameAs(const Prs3d_i* theOrigin);
00055 
00056     virtual
00057     ~Vectors_i();
00058 
00059     virtual
00060     VISU::VISUType 
00061     GetType() 
00062     { 
00063       return VISU::TVECTORS;
00064     }
00065 
00066     virtual
00067     void 
00068     SetLineWidth(CORBA::Double theWidth);
00069 
00070     virtual
00071     CORBA::Double
00072     GetLineWidth();
00073 
00074     virtual 
00075     void 
00076     SetGlyphType(VISU::Vectors::GlyphType theType);
00077 
00078     virtual
00079     VISU::Vectors::GlyphType 
00080     GetGlyphType();
00081 
00082     virtual 
00083     void 
00084     SetGlyphPos(VISU::Vectors::GlyphPos thePos);
00085 
00086     virtual 
00087     VISU::Vectors::GlyphPos 
00088     GetGlyphPos();
00089 
00090     VISU_VectorsPL* 
00091     GetSpecificPL() const
00092     { 
00093       return myVectorsPL; 
00094     }
00095     
00096   protected:
00098     virtual
00099     void
00100     CreatePipeLine(VISU_PipeLine* thePipeLine);
00101 
00103     virtual 
00104     bool 
00105     CheckIsPossible();
00106 
00107     virtual
00108     VISU_PipeLine* 
00109     GetActorPipeLine();
00110 
00111     VISU_VectorsPL *myVectorsPL;
00112     float myLineWidth;
00113 
00114   public:
00116     static 
00117     size_t 
00118     IsPossible(Result_i* theResult, 
00119             const std::string& theMeshName, 
00120             VISU::Entity theEntity,
00121             const std::string& theFieldName, 
00122             CORBA::Long theTimeStampNumber,
00123             bool theIsMemoryCheck);
00124 
00126     virtual
00127     Storable* 
00128     Create(const std::string& theMeshName, 
00129         VISU::Entity theEntity,
00130         const std::string& theFieldName, 
00131         CORBA::Long theTimeStampNumber);
00132 
00134     virtual
00135     void
00136     ToStream(std::ostringstream& theStr);
00137 
00139     virtual
00140     Storable* 
00141     Restore(SALOMEDS::SObject_ptr theSObject,
00142          const Storable::TRestoringMap& theMap);
00143 
00144     static const std::string myComment;
00145 
00147     virtual
00148     const char* 
00149     GetComment() const;
00150 
00152     virtual
00153     QString
00154     GenerateName();
00155 
00156     virtual
00157     const char* 
00158     GetIconName();
00159 
00161     virtual
00162     VISU_Actor* 
00163     CreateActor();
00164 
00166     virtual
00167     void
00168     UpdateActor(VISU_ActorBase* theActor) ;
00169   };
00170 }
00171 
00172 #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