_pyHypothesis Class Reference

Root class for hypothesis. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyHypothesis:

Inheritance graph

Public Member Functions

 _pyHypothesis (const Handle(_pyCommand)&theCreationCmd)
 _pyHypothesis constructor
virtual bool IsAlgo () const
bool IsWrapped () const
boolIsConverted ()
int GetDim () const
const _pyIDGetGeom () const
void SetMesh (const _pyID &theMeshId)
const _pyIDGetMesh () const
const TCollection_AsciiString GetType ()
bool IsWrappable (const _pyID &theMesh)
virtual bool Addition2Creation (const Handle(_pyCommand)&theAdditionCmd, const _pyID &theMesh)
void Process (const Handle(_pyCommand)&theCommand)
 Remember hypothesis parameter values.
void Flush ()
 Finish conversion.
const Handle (_pyCommand)&GetCreationCmd()
const _pyIDGetID ()
void SetCreationCmd (Handle(_pyCommand) cmd)
int GetCommandNb ()
virtual const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class.

Static Public Member Functions

static Handle (_pyHypothesis) NewHypothesis(const Handle(_pyCommand)&theCreationCmd)

Protected Attributes

bool myIsAlgo
bool myIsWrapped
bool myIsConverted
int myDim
int myAdditionCmdNb
_pyID myGeom
_pyID myMesh
TCollection_AsciiString myCreationMethod
TCollection_AsciiString myType
TColStd_SequenceOfAsciiString myArgs
TColStd_SequenceOfAsciiString myArgMethods
std::list< Handle(_pyCommand)> myArgCommands
std::list< Handle(_pyCommand)> myUnknownCommands

Detailed Description

HOWTO assure convertion of a new hypothesis In NewHypothesis(): 1. add a case for the name of the new hypothesis and 2. initialize _pyHypothesis fields: . myDim - hypothesis dimention; . myType - type name of the algorithm creating the hypothesis; . myCreationMethod - method name of the algorithm creating the hypothesis; . append to myArgMethods interface methods setting param values in the order they are used when myCreationMethod is called. It is supposed that each interface method sets only one parameter, if it is not so, you are to derive a specific class from _pyHypothesis that would redefine Process(), see _pyComplexParamHypo for example


Constructor & Destructor Documentation

_pyHypothesis::_pyHypothesis const Handle(_pyCommand)&  theCreationCmd  ) 
 

Parameters:
theCreationCmd -


Member Function Documentation

virtual bool _pyHypothesis.IsAlgo  )  const [virtual]
 

bool _pyHypothesis.IsWrapped  )  const
 

bool& _pyHypothesis.IsConverted  ) 
 

int _pyHypothesis.GetDim  )  const
 

const _pyID& _pyHypothesis.GetGeom  )  const
 

void _pyHypothesis.SetMesh const _pyID theMeshId  ) 
 

const _pyID& _pyHypothesis.GetMesh  )  const
 

const TCollection_AsciiString _pyHypothesis.GetType  ) 
 

bool _pyHypothesis.IsWrappable const _pyID theMesh  ) 
 

virtual bool _pyHypothesis.Addition2Creation const Handle(_pyCommand)&  theAdditionCmd,
const _pyID theMesh
[virtual]
 

Reimplemented in _pyNumberOfSegmentsHyp, and _pyAlgorithm.

static _pyHypothesis.Handle _pyHypothesis   )  const [static]
 

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

Parameters:
theCommand - The called hypothesis method

Implements _pyObject.

Reimplemented in _pyComplexParamHypo.

void _pyHypothesis::Flush  )  [virtual]
 

Implements _pyObject.

Reimplemented in _pyNumberOfSegmentsHyp.

const _pyObject.Handle _pyCommand   )  [inherited]
 

const _pyID& _pyObject.GetID  )  [inherited]
 

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

int _pyObject.GetCommandNb  )  [inherited]
 

const char * _pyObject::AccessorMethod  )  const [virtual, inherited]
 

Return values:
const char* - method name

Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.


Field Documentation

bool _pyHypothesis.myIsAlgo [protected]
 

bool _pyHypothesis.myIsWrapped [protected]
 

bool _pyHypothesis.myIsConverted [protected]
 

int _pyHypothesis.myDim [protected]
 

int _pyHypothesis.myAdditionCmdNb [protected]
 

_pyID _pyHypothesis.myGeom [protected]
 

_pyID _pyHypothesis.myMesh [protected]
 

TCollection_AsciiString _pyHypothesis.myCreationMethod [protected]
 

TCollection_AsciiString _pyHypothesis.myType [protected]
 

TColStd_SequenceOfAsciiString _pyHypothesis.myArgs [protected]
 

TColStd_SequenceOfAsciiString _pyHypothesis.myArgMethods [protected]
 

std::list<Handle(_pyCommand)> _pyHypothesis.myArgCommands [protected]
 

std::list<Handle(_pyCommand)> _pyHypothesis.myUnknownCommands [protected]