Interface of geometric object.
import "GEOM_Gen.idl";
Public Member Functions | |
shape_type | GetShapeType () |
Get a shape_type of the object value. More... | |
shape_type | GetTopologyType () |
Get the topology type of the object value. More... | |
shape_type | GetMinShapeType () |
Get a minimal type of the top-level shapes contained in the object. More... | |
shape_type | GetMaxShapeType () |
Get a maximal type of the top-level shapes contained in the object. More... | |
string | GetSubShapeName (in long subID) |
Returns a name of a sub-shape if the sub-shape is published in the study. More... | |
void | SetColor (in SALOMEDS::Color theColor) |
Set color of the object. More... | |
SALOMEDS::Color | GetColor () |
void | SetAutoColor (in boolean theAutoColor) |
boolean | GetAutoColor () |
Get flag of object's auto color mode. More... | |
void | SetMarkerStd (in marker_type theType, in marker_size theSize) |
Set standard point marker for the object. More... | |
void | SetMarkerTexture (in long theTextureId) |
Set custom point marker for the object. More... | |
marker_type | GetMarkerType () |
Get type of the point marker assigned to the object. More... | |
marker_size | GetMarkerSize () |
Get size of the point marker assigned to the object. More... | |
long | GetMarkerTexture () |
Get texture idenifier of the point marker assigned to the object. More... | |
long long | getShape () |
Get the TopoDS_Shape, for colocated case only. More... | |
SALOMEDS::TMPFile | GetShapeStream () |
Get geometric shape of the object as a byte stream in BRep format. More... | |
boolean | IsMainShape () |
ListOfLong | GetSubShapeIndices () |
GEOM_Object | GetMainShape () |
Public Member Functions inherited from GEOM::GEOM_BaseObject | |
void | SetName (in string theName) |
Set name of the object. More... | |
string | GetName () |
Get name of the object associated with this object. More... | |
string | GetEntry () |
Get internal (unique) entry of the object in the GEOM component's data tree. More... | |
long | GetStudyID () |
Get ID of study, where the object is created. More... | |
long | GetType () |
Get internal type of operation created this object (POINT, BOX, CYLINDER, EXTRUSION...). More... | |
long | GetTick () |
Get value of a modification counter of the object. More... | |
void | SetStudyEntry (in string theEntry) |
Set a Study entry where this object was published. More... | |
string | GetStudyEntry () |
Get a Study entry where this object was published. More... | |
ListOfGBO | GetDependency () |
Get a list of all GEOM_Object on which were the arguments when this object was constructed and modified. More... | |
ListOfGBO | GetLastDependency () |
Get a list of GEOM_Object on which the last function that created or modified the object depends. More... | |
boolean | IsShape () |
boolean | IsSame (in GEOM_BaseObject other) |
void | SetParameters (in string theParameters) |
string | GetParameters () |
Return list of notebook variables used for object creation separated by ":" symbol. More... | |
CreationInformationSeq | GetCreationInformation () |
Return name of operation and values of parameters used for object creation. More... | |
boolean GEOM::GEOM_Object::GetAutoColor | ( | ) |
SALOMEDS::Color GEOM::GEOM_Object::GetColor | ( | ) |
Get color of the object.
GEOM_Object GEOM::GEOM_Object::GetMainShape | ( | ) |
marker_size GEOM::GEOM_Object::GetMarkerSize | ( | ) |
long GEOM::GEOM_Object::GetMarkerTexture | ( | ) |
marker_type GEOM::GEOM_Object::GetMarkerType | ( | ) |
shape_type GEOM::GEOM_Object::GetMaxShapeType | ( | ) |
This function is useful for the compounds only; for simple shapes it exactly the same value as GetShapeType(). Note, that compounds are procesed recursively.
shape_type GEOM::GEOM_Object::GetMinShapeType | ( | ) |
This function is useful for the compounds only; for simple shapes it exactly the same value as GetShapeType(). Note, that compounds are procesed recursively.
long long GEOM::GEOM_Object::getShape | ( | ) |
SALOMEDS::TMPFile GEOM::GEOM_Object::GetShapeStream | ( | ) |
shape_type GEOM::GEOM_Object::GetShapeType | ( | ) |
ListOfLong GEOM::GEOM_Object::GetSubShapeIndices | ( | ) |
string GEOM::GEOM_Object::GetSubShapeName | ( | in long | subID | ) |
subID | - sub-shape ID |
shape_type GEOM::GEOM_Object::GetTopologyType | ( | ) |
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.
boolean GEOM::GEOM_Object::IsMainShape | ( | ) |
void GEOM::GEOM_Object::SetAutoColor | ( | in boolean | theAutoColor | ) |
Toggle auto color mode on the object.
theAutoColor | is a flag which toggles auto color mode. |
void GEOM::GEOM_Object::SetColor | ( | in SALOMEDS::Color | theColor | ) |
theColor | is a color of the object. |
void GEOM::GEOM_Object::SetMarkerStd | ( | in marker_type | theType, |
in marker_size | theSize | ||
) |
theType | standard marker type |
theSize | marker relative size |
void GEOM::GEOM_Object::SetMarkerTexture | ( | in long | theTextureId | ) |
The texture can be added by LoadTexture() or AddTexture() functions.
theTextureId | texture ID |