Class encapsulates methods. More...
#include <StdMeshers_ObjRefUlils.hxx>
Static Public Member Functions | |
| static GEOM::GEOM_Object_ptr | ShapeToGeomObject (const TopoDS_Shape &theShape) |
| Return GEOM Object correspoding to TopoDS_Shape. More... | |
| static TopoDS_Shape | GeomObjectToShape (GEOM::GEOM_Object_ptr theGeomObject) |
| Return TopoDS_Shape correspoding to GEOM_Object. More... | |
| static std::string | GeomObjectToEntry (GEOM::GEOM_Object_ptr theGeomObject) |
| Return study entry of GEOM Object. More... | |
| static GEOM::GEOM_Object_ptr | EntryOrShapeToGeomObject (const std::string &theEntry, const TopoDS_Shape &theShape) |
| Return GEOM Object by its study entry or TopoDS_Shape. More... | |
| static void | SaveToStream (const TopoDS_Shape &theShape, std::ostream &stream) |
| Store the shape in the stream. More... | |
| static TopoDS_Shape | LoadFromStream (std::istream &stream, std::string *entry=NULL) |
| Retrieve a shape from the stream. More... | |
| static void | SaveToStream (CORBA::Object_ptr obj, std::ostream &stream) |
| Store the CORBA object in the stream. More... | |
| template<class TInterface > | |
| static TInterface::_var_type | LoadObjectFromStream (std::istream &stream) |
| Retrieve a CORBA object from the stream. More... | |
| static void | SaveToStream (const std::string &studyEntry, std::ostream &stream) |
| Store the study entry of object in the stream. More... | |
Class encapsulates methods.
These methods are useful for hypotheses referring to other objects like meshes, geom objects, other hypotheses, etc.
|
static |
Return GEOM Object by its study entry or TopoDS_Shape.
References SMESH_Gen_i::GetSMESHGen().
Referenced by StdMeshers_QuadrangleParams_i::GetEnforcedNodes(), StdMeshers_ProjectionSource3D_i::GetSource3DShape(), StdMeshers_ProjectionSource1D_i::GetSourceEdge(), StdMeshers_ProjectionSource2D_i::GetSourceFace(), StdMeshers_ProjectionSource1D_i::GetSourceVertex(), StdMeshers_ProjectionSource2D_i::GetSourceVertex(), StdMeshers_ProjectionSource3D_i::GetSourceVertex(), StdMeshers_ProjectionSource1D_i::GetTargetVertex(), StdMeshers_ProjectionSource2D_i::GetTargetVertex(), and StdMeshers_ProjectionSource3D_i::GetTargetVertex().
|
static |
Return study entry of GEOM Object.
Referenced by StdMeshers_ProjectionSource1D_i::SetVertexAssociation(), StdMeshers_ProjectionSource2D_i::SetVertexAssociation(), and StdMeshers_ProjectionSource3D_i::SetVertexAssociation().
|
static |
Return TopoDS_Shape correspoding to GEOM_Object.
| theGeomObject | - input object |
| TopoDS_Shape | - result TopoDS_Shape |
References SMESH_Gen_i::GetSMESHGen().
Referenced by StdMeshers_QuadrangleParams_i::SetEnforcedNodes(), StdMeshers_ProjectionSource3D_i::SetSource3DShape(), StdMeshers_ProjectionSource1D_i::SetSourceEdge(), StdMeshers_ProjectionSource2D_i::SetSourceFace(), StdMeshers_ProjectionSource1D_i::SetVertexAssociation(), StdMeshers_ProjectionSource2D_i::SetVertexAssociation(), and StdMeshers_ProjectionSource3D_i::SetVertexAssociation().
|
static |
Retrieve a shape from the stream.
| stream | - the stream |
| TopoDS_Shape | - resulting shape |
References SMESH_Gen_i::GetSMESHGen().
Referenced by StdMeshers_QuadrangleParams_i::LoadFrom(), StdMeshers_ProjectionSource1D_i::LoadFrom(), StdMeshers_ProjectionSource2D_i::LoadFrom(), and StdMeshers_ProjectionSource3D_i::LoadFrom().
|
static |
Retrieve a CORBA object from the stream.
| stream | - the stream |
| CORBA::Object_ptr | - result object |
References SMESH_Gen_i::GetSMESHGen().
|
static |
Store the shape in the stream.
| theShape | - shape to store |
| stream | - the stream |
References SMESH_Gen_i::GetSMESHGen().
Referenced by StdMeshers_ImportSource1D_i::SaveTo(), StdMeshers_ImportSource2D_i::SaveTo(), StdMeshers_QuadrangleParams_i::SaveTo(), StdMeshers_ProjectionSource1D_i::SaveTo(), StdMeshers_ProjectionSource2D_i::SaveTo(), and StdMeshers_ProjectionSource3D_i::SaveTo().
|
static |
Store the CORBA object in the stream.
| obj | - object to store |
| stream | - the stream |
References SMESH_Gen_i::GetSMESHGen().
|
static |
Store the study entry of object in the stream.
| studyEntry | - the study entry |
| stream | - the stream |
|
static |
Return GEOM Object correspoding to TopoDS_Shape.
| theShape | - input TopoDS_Shape |
| GEOM::GEOM_Object_ptr | - result object |
References SMESH_Gen_i::GetSMESHGen().