Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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