Back to index

salome-geom  6.5.0
GEOM_Object_i.hh
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 #ifndef _GEOM_Object_i_HeaderFile
00024 #define _GEOM_Object_i_HeaderFile
00025 
00026 #include "GEOM_GEOM_I.hxx"
00027 
00028 #include "GEOMImpl_Gen.hxx"
00029 
00030 #include <SALOMEconfig.h>
00031 #include CORBA_CLIENT_HEADER(SALOMEDS)
00032 #include CORBA_SERVER_HEADER(GEOM_Gen)
00033 
00034 #include "SALOME_GenericObj_i.hh"
00035 
00036 #include "GEOM_Object.hxx"
00037 
00038 #include <TopoDS_Shape.hxx>
00039 
00040 class GEOM_I_EXPORT GEOM_Object_i : public virtual POA_GEOM::GEOM_Object, public virtual SALOME::GenericObj_i
00041 {
00042  public:
00043    GEOM_Object_i(PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, Handle(GEOM_Object) theImpl);
00044    ~GEOM_Object_i();
00045 
00046   virtual char* GetEntry();
00047 
00048   virtual CORBA::Long GetStudyID();
00049 
00050   virtual CORBA::Long GetType();
00051 
00052   virtual GEOM::shape_type GetShapeType();
00053 
00054   virtual GEOM::shape_type GetTopologyType();
00055 
00056   virtual GEOM::shape_type GetMinShapeType();
00057 
00058   virtual GEOM::shape_type GetMaxShapeType();
00059 
00060   virtual void SetName(const char* theName);
00061 
00062   virtual char* GetName();
00063 
00064   virtual void SetColor(const SALOMEDS::Color& theColor);
00065 
00066   virtual SALOMEDS::Color GetColor();
00067 
00068   virtual void SetAutoColor(CORBA::Boolean theAutoColor);
00069 
00070   virtual CORBA::Boolean GetAutoColor();
00071 
00072   void SetMarkerStd(GEOM::marker_type theType, GEOM::marker_size theSize);
00073   
00074   void SetMarkerTexture(CORBA::Long theTextureId);
00075   
00076   GEOM::marker_type GetMarkerType();
00077 
00078   GEOM::marker_size GetMarkerSize();
00079 
00080   CORBA::Long GetMarkerTexture();
00081   
00082   virtual void SetStudyEntry(const char* theEntry);
00083 
00084   virtual char* GetStudyEntry();
00085 
00086   virtual GEOM::ListOfGO* GetDependency();
00087 
00088   virtual GEOM::ListOfGO* GetLastDependency();
00089 
00090   virtual SALOMEDS::TMPFile* GetShapeStream();
00091 
00092   virtual CORBA::LongLong getShape();
00093 
00094   virtual bool IsMainShape() { return _impl->IsMainShape(); }
00095 
00096   virtual GEOM::ListOfLong* GetSubShapeIndices();
00097 
00098   virtual GEOM::GEOM_Object_ptr GetMainShape();
00099 
00100   virtual bool IsSame(GEOM::GEOM_Object_ptr other);
00101 
00102   virtual bool IsShape();
00103 
00104   virtual void SetParameters(const char* theParameters);
00105 
00106   virtual char* GetParameters();
00107 
00108   Handle(GEOM_Object) GetImpl() { return _impl; }
00109 
00110  private:
00111 
00112   GEOM::GEOM_Gen_var _engine;
00113   Handle(GEOM_Object) _impl;
00114   TopoDS_Shape _geom;
00115 };
00116 
00117 #endif