Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOM_Swig Class Reference

#include <libGEOM_Swig.h>

Public Member Functions

 GEOM_Swig ()
 Constructor. More...
 
 ~GEOM_Swig ()
 Destructor. More...
 
void createAndDisplayGO (const char *theEntry, bool theUpdateViewer=true)
 Display the presenation in the currently active view. More...
 
void createAndDisplayFitAllGO (const char *theEntry)
 Same as createAndDisplayGO, but also fits the active view to the contents. More...
 
void eraseGO (const char *theEntry, bool theUpdateViewer=true)
 Erase presentation in the currently active viewer. More...
 
void UpdateViewer ()
 Update active viewer contents. More...
 
void setDisplayMode (const char *theEntry, int theMode, bool theUpdateViewer=true)
 Set display mode to the presentation. More...
 
void setVectorsMode (const char *theEntry, bool theOn, bool theUpdateViewer=true)
 Show / hide edges direction vectors for the presentation. More...
 
void setVerticesMode (const char *theEntry, bool theOn, bool theUpdateViewer=true)
 Show / hide vertices for the presentation. More...
 
void setNameMode (const char *theEntry, bool theOn, bool theUpdateViewer=true)
 Show / hide name of shape for the presentation. More...
 
void setColor (const char *theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer=true)
 Change color of the presentation. More...
 
void setTransparency (const char *theEntry, float theTransparency, bool theUpdateViewer=true)
 Set transparency of the presentation. More...
 
void setIsos (const char *theEntry, int theNbU, int theNbV, bool theUpdateViewer=true)
 Set number of iso-lines to the presentation. More...
 
void setDeflection (const char *theEntry, float theDeflection, bool theUpdateViewer=true)
 Set deflection coefficient of the presentation. More...
 
void setMaterial (const char *theEntry, const char *theMaterial, bool theUpdateViewer=true)
 Set material to the presentation. More...
 
void setMaterialProperty (const char *theEntry, const char *theMaterial, bool theUpdateViewer=true)
 Set material property to the presentation. More...
 
int getIndexTopology (const char *theSubIOR, const char *theMainIOR)
 Get sub-shape index inside main shape. More...
 
const char * getShapeTypeString (const char *theIOR)
 Get shape type name. More...
 
const char * getShapeTypeIcon (const char *theIOR)
 Get shape's icon ID (specified by its type) More...
 
bool initGeomGen ()
 Initialize GEOM module's engine. More...
 

Private Member Functions

void init ()
 Internal initialization. More...
 

Constructor & Destructor Documentation

GEOM_Swig::GEOM_Swig ( )

References init().

GEOM_Swig::~GEOM_Swig ( )

Member Function Documentation

void GEOM_Swig::createAndDisplayFitAllGO ( const char *  theEntry)
Parameters
theEntrygeometry object's entry
theUpdateViewertrue to update active view's contents

References createAndDisplayGO().

void GEOM_Swig::createAndDisplayGO ( const char *  theEntry,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theUpdateViewertrue to update active view's contents

References GEOM_Displayer::Display(), and Handle().

void GEOM_Swig::eraseGO ( const char *  theEntry,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theUpdateViewertrue to update active view's contents

References GEOM_Displayer::Erase(), and Handle().

int GEOM_Swig::getIndexTopology ( const char *  theSubIOR,
const char *  theMainIOR 
)
Parameters
theSubIORsub-shape geometry object's IOR
theMainIORmain shape geometry object's IOR
Returns
sub-shape index (-1 in case of error)

References aMainShape, and GeometryGUI::GetGeomGen().

const char * GEOM_Swig::getShapeTypeIcon ( const char *  theIOR)
Parameters
theIORgeometry object's IOR
Returns
icon ID ("None" in case of error)

References GEOM::COMPOUND, and GEOM::SHAPE.

const char * GEOM_Swig::getShapeTypeString ( const char *  theIOR)
Parameters
theIORgeometry object's IOR
Returns
shape type name ("Shape of unknown type" in case of error)

References GeometryGUI::GetGeomGen().

void GEOM_Swig::init ( )
private
bool GEOM_Swig::initGeomGen ( )
Returns
true if initialization succeedes or false otherwise
void GEOM_Swig::setColor ( const char *  theEntry,
int  theRed,
int  theGreen,
int  theBlue,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theRedred component of the component (0-255)
theGreengreen component of the component (0-255)
theBlueblue component of the component (0-255)
theUpdateViewertrue to update active view's contents

References GEOM::Color, and GEOM::propertyName().

void GEOM_Swig::setDeflection ( const char *  theEntry,
float  theDeflection,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theDeflectiondeflection coefficient (floating point value)
theUpdateViewertrue to update active view's contents

References GEOM::Deflection, and GEOM::propertyName().

void GEOM_Swig::setDisplayMode ( const char *  theEntry,
int  theMode,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theModedisplay mode: 0 - wireframe, 1 - shading, 2 - shading+edges, 3-textured
theUpdateViewertrue to update active view's contents

References GEOM::DisplayMode, and GEOM::propertyName().

void GEOM_Swig::setIsos ( const char *  theEntry,
int  theNbU,
int  theNbV,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theNbUnumber of iso-lines along U axis (interger value >= 0)
theNbVnumber of iso-lines along V axis (interger value >= 0)
theUpdateViewertrue to update active view's contents

References GEOM::NbIsos, GEOM::propertyName(), and GEOM::subSectionSeparator().

void GEOM_Swig::setMaterial ( const char *  theEntry,
const char *  theMaterial,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theMaterialmaterial name (string)
theUpdateViewertrue to update active view's contents

References Material_Model::fromResources(), GEOM::Material, GEOM::propertyName(), and Material_Model::toProperties().

void GEOM_Swig::setMaterialProperty ( const char *  theEntry,
const char *  theMaterial,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theMaterialmaterial property string
theUpdateViewertrue to update active view's contents

References GEOM::Material, and GEOM::propertyName().

void GEOM_Swig::setNameMode ( const char *  theEntry,
bool  theOn,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theOntrue to show name or false otherwise
theUpdateViewertrue to update active view's contents

References GEOM::propertyName(), and GEOM::ShowName.

void GEOM_Swig::setTransparency ( const char *  theEntry,
float  theTransparency,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theTransparencytransparency (floating point value between 0 and 1)
theUpdateViewertrue to update active view's contents

References GEOM::propertyName(), and GEOM::Transparency.

void GEOM_Swig::setVectorsMode ( const char *  theEntry,
bool  theOn,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theOntrue to show edges direction vectors or false otherwise
theUpdateViewertrue to update active view's contents

References GEOM::EdgesDirection, and GEOM::propertyName().

void GEOM_Swig::setVerticesMode ( const char *  theEntry,
bool  theOn,
bool  theUpdateViewer = true 
)
Parameters
theEntrygeometry object's entry
theOntrue to show vertices or false otherwise
theUpdateViewertrue to update active view's contents

References GEOM::propertyName(), and GEOM::Vertices.

void GEOM_Swig::UpdateViewer ( )

The documentation for this class was generated from the following files: