_pyGen Class Reference

Class corresponding to SMESH_Gen. It holds info on existing meshes and hypotheses.

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyGen:

Inheritance graph

Public Member Functions

 _pyGen (Resource_DataMapOfAsciiStringAsciiString &theEntry2AccessorMethod)
 _pyGen constructor
void AddCommand (const TCollection_AsciiString &theCommand)
 Convert a command using a specific converter.
void Process (const Handle(_pyCommand)&theCommand)
 Convert the command or remember it for later conversion.
void Flush ()
 Convert the remembered commands.
 Handle (_pyHypothesis) FindHyp(const _pyID &theHypID)
 Handle (_pyHypothesis) FindAlgo(const _pyID &theGeom
void ExchangeCommands (Handle(_pyCommand) theCmd1, Handle(_pyCommand) theCmd2)
 Change order of commands in the script.
void SetCommandAfter (Handle(_pyCommand) theCmd, Handle(_pyCommand) theAfterCmd)
 Set one command after the other.
void SetAccessorMethod (const _pyID &theID, const char *theMethod)
const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class.
const Handle (_pyCommand)&GetCreationCmd()
const _pyIDGetID ()
void SetCreationCmd (Handle(_pyCommand) cmd)
int GetCommandNb ()

Data Fields

const _pyIDtheMesh
const _pyID const TCollection_AsciiString & theAlgoType

Private Attributes

std::map< _pyID, Handle(_pyMesh) > myMeshes
std::list< Handle(_pyHypothesis) > myHypos
std::list< Handle(_pyCommand) > myCommands
int myNbCommands
bool myHasPattern
Resource_DataMapOfAsciiStringAsciiString & myID2AccessorMethod

Constructor & Destructor Documentation

_pyGen::_pyGen Resource_DataMapOfAsciiStringAsciiString &  theEntry2AccessorMethod  ) 
 


Member Function Documentation

void _pyGen::AddCommand const TCollection_AsciiString &  theCommand  ) 
 

Parameters:
theCommand - the command to convert

void _pyGen::Process const Handle(_pyCommand)&  theCommand  )  [virtual]
 

Parameters:
theCommand - The python command calling a method of SMESH_Gen

Implements _pyObject.

void _pyGen::Flush  )  [virtual]
 

Implements _pyObject.

_pyGen.Handle _pyHypothesis   )  const
 

_pyGen.Handle _pyHypothesis   )  const
 

void _pyGen::ExchangeCommands Handle(_pyCommand theCmd1,
Handle(_pyCommand theCmd2
 

Parameters:
theCmd1 - One command
theCmd2 - Another command

void _pyGen::SetCommandAfter Handle(_pyCommand theCmd,
Handle(_pyCommand theAfterCmd
 

Parameters:
theCmd - Command to move
theAfterCmd - Command ater which to insert the first one

void _pyGen.SetAccessorMethod const _pyID theID,
const char *  theMethod
 

const char* _pyGen.AccessorMethod  )  const [virtual]
 

Return values:
const char* - method name

Reimplemented from _pyObject.

const _pyObject.Handle _pyCommand   )  [inherited]
 

const _pyID& _pyObject.GetID  )  [inherited]
 

void _pyObject.SetCreationCmd Handle(_pyCommand cmd  )  [inherited]
 

int _pyObject.GetCommandNb  )  [inherited]
 


Field Documentation

const _pyID& _pyGen.theMesh
 

const _pyID const TCollection_AsciiString& _pyGen.theAlgoType
 

std::map< _pyID, Handle(_pyMesh) > _pyGen.myMeshes [private]
 

std::list< Handle(_pyHypothesis) > _pyGen.myHypos [private]
 

std::list< Handle(_pyCommand) > _pyGen.myCommands [private]
 

int _pyGen.myNbCommands [private]
 

bool _pyGen.myHasPattern [private]
 

Resource_DataMapOfAsciiStringAsciiString& _pyGen.myID2AccessorMethod [private]