Version: 6.3.1
Public Member Functions

GEOM.GEOM_Object Interface Reference

import "GEOM_Gen.idl";

Inheritance diagram for GEOM.GEOM_Object:
Inheritance graph

Public Member Functions

string GetEntry ()
long GetStudyID ()
long GetType ()
shape_type GetShapeType ()
shape_type GetTopologyType ()
shape_type GetMinShapeType ()
shape_type GetMaxShapeType ()
void SetName (in string theName)
string GetName ()
void SetColor (in SALOMEDS::Color theColor)
SALOMEDS::Color GetColor ()
void SetAutoColor (in boolean theAutoColor)
boolean GetAutoColor ()
void SetMarkerStd (in marker_type theType, in marker_size theSize)
void SetMarkerTexture (in long theTextureId)
marker_type GetMarkerType ()
marker_size GetMarkerSize ()
long GetMarkerTexture ()
void SetStudyEntry (in string theEntry)
string GetStudyEntry ()
ListOfGO GetDependency ()
ListOfGO GetLastDependency ()
long long getShape ()
SALOMEDS::TMPFile GetShapeStream ()
boolean IsMainShape ()
ListOfLong GetSubShapeIndices ()
GEOM_Object GetMainShape ()
boolean IsShape ()
boolean IsSame (in GEOM_Object other)
void SetParameters (in string theParameters)
string GetParameters ()

Detailed Description

GEOM_Object: interface of geometric object


Member Function Documentation

string GEOM.GEOM_Object.GetEntry ( )

Get an entry of the object in GEOM component.

long GEOM.GEOM_Object.GetStudyID ( )

Get ID of study, where the object is created.

long GEOM.GEOM_Object.GetType ( )

Get internal type of the object (POINT, BOX, CYLINDER, EXTRUSION...).

shape_type GEOM.GEOM_Object.GetShapeType ( )

Get a shape_type of the object value.

shape_type GEOM.GEOM_Object.GetTopologyType ( )

Get the topology type of the object value. In contrast to the shape type, this function returns type of the most top-level sub-shape of the COMPOUND or COMPSOLID, if there is only one sub-shape there.

See also:
GetShapeType()
shape_type GEOM.GEOM_Object.GetMinShapeType ( )

Get a minimal type of the top-level shapes contained in the object. This function is useful for the compounds only; for simple shapes it exactly the same value as GetShapeType(). Note, that compounds are procesed recursively.

See also:
GetShapeType(), GetTopologyType(), GetMaxShapeType()
shape_type GEOM.GEOM_Object.GetMaxShapeType ( )

Get a maximal type of the top-level shapes contained in the object. This function is useful for the compounds only; for simple shapes it exactly the same value as GetShapeType(). Note, that compounds are procesed recursively.

See also:
GetShapeType(), GetTopologyType(), GetMinShapeType()
void GEOM.GEOM_Object.SetName ( in string  theName)

Set name of the object.

Parameters:
theNameis a name which will be associated with this object.
string GEOM.GEOM_Object.GetName ( )

Get name of the object associated with this object.

void GEOM.GEOM_Object.SetColor ( in SALOMEDS::Color  theColor)

Set color of the object.

Parameters:
theColoris a color of the object.
SALOMEDS::Color GEOM.GEOM_Object.GetColor ( )

Get color of the object.

void GEOM.GEOM_Object.SetAutoColor ( in boolean  theAutoColor)

Toggle auto color mode on the object.

Parameters:
theAtoColoris a flag which toggles auto color mode.
boolean GEOM.GEOM_Object.GetAutoColor ( )

Get flag of object's auto color mode.

void GEOM.GEOM_Object.SetMarkerStd ( in marker_type  theType,
in marker_size  theSize 
)

Set standard point marker for the object

Parameters:
theTypestandard marker type
theSizemarker relative size
void GEOM.GEOM_Object.SetMarkerTexture ( in long  theTextureId)

Set custom point marker for the object. The texture can be added by LoadTexture() or AddTexture() functions.

Parameters:
theTextureIdtexture ID
marker_type GEOM.GEOM_Object.GetMarkerType ( )

Get type of the point marker assigned to the object

Returns:
current marker type (MT_NONE if no marker is set)
marker_size GEOM.GEOM_Object.GetMarkerSize ( )

Get size of the point marker assigned to the object

Returns:
current marker relative size (MS_NONE if no marker is set)
long GEOM.GEOM_Object.GetMarkerTexture ( )

Get texture idenifier of the point marker assigned to the object

Returns:
marker texture ID (0 if no marker set)
void GEOM.GEOM_Object.SetStudyEntry ( in string  theEntry)

Set a Study entry where this object was published.

string GEOM.GEOM_Object.GetStudyEntry ( )

Get a Study entry where this object was published.

ListOfGO GEOM.GEOM_Object.GetDependency ( )

Get a list of all GEOM objects on which were the arguments when this object was constructed and modified.

Note:
This method is supposed to be used by GUI only.
ListOfGO GEOM.GEOM_Object.GetLastDependency ( )

Get a list of GEOM objects on which the last function that created or modified the object depends.

Note:
This method is supposed to be used by GUI only.
long long GEOM.GEOM_Object.getShape ( )

Get the TopoDS_Shape, for colocated case only.

SALOMEDS::TMPFile GEOM.GEOM_Object.GetShapeStream ( )

###################################################################### Internal methods (For sub shape identification) ######################################################################

Get geometric shape of the object as a byte stream

boolean GEOM.GEOM_Object.IsMainShape ( )
ListOfLong GEOM.GEOM_Object.GetSubShapeIndices ( )
GEOM_Object GEOM.GEOM_Object.GetMainShape ( )
boolean GEOM.GEOM_Object.IsShape ( )
boolean GEOM.GEOM_Object.IsSame ( in GEOM_Object  other)
void GEOM.GEOM_Object.SetParameters ( in string  theParameters)

Set list of parameters

Parameters:
theParametersis a string containing the notebook variables separated by ":" symbol, used for object creation
string GEOM.GEOM_Object.GetParameters ( )

Return list of notebook variables used for object creation separated by ":" symbol

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