static PyMethodDef PyStdOut_methods[] = {
{"write", (PyCFunction)PyStdOut_write, METH_VARARGS,
PyDoc_STR("write(string) -> None")},
- {NULL, NULL} /* sentinel */
+ {0, 0, 0, 0} /* sentinel */
};
static PyMemberDef PyStdOut_memberlist[] = {
{(char*)"softspace", T_INT, offsetof(PyStdOut, softspace), 0,
(char*)"flag indicating that a space needs to be printed; used by print"},
- {NULL} /* Sentinel */
+ {0, 0, 0, 0, 0} /* Sentinel */
};
static PyTypeObject PyStdOut_Type = {
0, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
+ 0, /*tp_bases*/
+ 0, /*tp_mro*/
+ 0, /*tp_cache*/
+ 0, /*tp_subclasses*/
+ 0, /*tp_weaklist*/
+ 0, /*tp_del*/
+ 0, /*tp_version_tag*/
+ 0, /*tp_finalize*/
};
PyObject * newPyStdOut( std::string& out )
/////////////////////////////////////////////////////////
void createAttractorOnFace(TopoDS_Shape GeomShape, std::string AttractorFunction, double defaultSize)
{
- double xa, ya, za; // Coordinates of attractor point
+ double xa=0., ya=0., za=0.; // Coordinates of attractor point // todo: xa, ya, za must be explicitly initialized to avoid warning (see below)
double a, b; // Attractor parameter
double d = 0.;
bool createNode=false; // To create a node on attractor projection
}
// Get the (u,v) values of the attractor on the face
- projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za));
+ projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za)); // todo: xa, ya, za must be explicitly initialized to avoid warning (see above)
gp_XY uvPoint = myPoint.uv;
gp_XYZ xyzPoint = myPoint.xyz;
Standard_Real u0 = uvPoint.X();
SetOptionValue( "enforce_cad_edge_sizes", toEnforce ? "yes" : "no" );
NotifySubMeshesHypothesisModification();
}
+#else
+ (void)toEnforce; // maybe unused
#endif
}
//=============================================================================
//=============================================================================
void BLSURFPlugin_Hypothesis::SetMaxNumberOfPointsPerPatch( int nb )
-
{
#if MESHGEMS_VERSION_HEX < 0x020A00
// Deprecated since MeshGems 2.10
SetOptionValue("max_number_of_points_per_patch", SMESH_Comment( nb ));
NotifySubMeshesHypothesisModification();
}
+#else
+ (void)nb; // maybe unused
#endif
}
//=============================================================================
//=============================================================================
void BLSURFPlugin_Hypothesis::SetMaxNumberOfThreads( int nb )
-
{
if ( nb < 0 )
throw std::invalid_argument( SMESH_Comment("Invalid number of threads: ") << nb );
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPeriodicTolerance( CORBA::Double tol )
-
{
if ( tol <= 0 )
throw std::invalid_argument( SMESH_Comment("Invalid tolerance: ") << tol );
//=============================================================================
void BLSURFPlugin_Hypothesis::SetRequiredEntities( const std::string& howToTreat )
-
{
if ( howToTreat != "respect" && howToTreat != "ignore" && howToTreat != "clear" )
throw std::invalid_argument
//=============================================================================
void BLSURFPlugin_Hypothesis::SetSewingTolerance( CORBA::Double tol )
-
{
if ( tol <= 0 )
throw std::invalid_argument( SMESH_Comment("Invalid tolerance: ") << tol );
//=============================================================================
void BLSURFPlugin_Hypothesis::SetTags( const std::string& howToTreat )
-
{
if ( howToTreat != "respect" && howToTreat != "ignore" && howToTreat != "clear" )
throw std::invalid_argument
//=============================================================================
void BLSURFPlugin_Hypothesis::SetOptionValue(const std::string& optionName, const std::string& optionValue)
- {
-
+{
TOptionValues::iterator op_val = _option2value.find(optionName);
if (op_val == _option2value.end())
{
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPreCADOptionValue(const std::string& optionName, const std::string& optionValue)
- {
-
+{
TOptionValues::iterator op_val = _preCADoption2value.find(optionName);
if (op_val == _preCADoption2value.end()) {
op_val = _option2value.find(optionName);
//=============================================================================
std::string BLSURFPlugin_Hypothesis::GetOptionValue(const std::string& optionName,
bool* isDefault) const
-
{
TOptionValues::const_iterator op_val = _option2value.find(optionName);
if (op_val == _option2value.end())
//=============================================================================
std::string BLSURFPlugin_Hypothesis::GetPreCADOptionValue(const std::string& optionName,
bool* isDefault) const
-
{
TOptionValues::const_iterator op_val = _preCADoption2value.find(optionName);
if (op_val == _preCADoption2value.end())
//=======================================================================
BLSURFPlugin_Hypothesis::TEnfVertexList BLSURFPlugin_Hypothesis::GetEnfVertexList(const TEntry& theFaceEntry)
- {
-
+{
if (_faceEntryEnfVertexListMap.count(theFaceEntry) > 0)
return _faceEntryEnfVertexListMap[theFaceEntry];
else
//function : GetEnfVertexCoordsList
//=======================================================================
-BLSURFPlugin_Hypothesis::TEnfVertexCoordsList BLSURFPlugin_Hypothesis::GetEnfVertexCoordsList(
- const TEntry& theFaceEntry) {
-
+BLSURFPlugin_Hypothesis::TEnfVertexCoordsList BLSURFPlugin_Hypothesis::GetEnfVertexCoordsList(const TEntry& theFaceEntry)
+{
if (_faceEntryCoordsListMap.count(theFaceEntry) > 0)
return _faceEntryCoordsListMap[theFaceEntry];
//=======================================================================
BLSURFPlugin_Hypothesis::TEntryList BLSURFPlugin_Hypothesis::GetEnfVertexEntryList(const TEntry& theFaceEntry)
- {
-
+{
if (_faceEntryEnfVertexEntryListMap.count(theFaceEntry) > 0)
return _faceEntryEnfVertexEntryListMap[theFaceEntry];
//=======================================================================
BLSURFPlugin_Hypothesis::TEnfVertex* BLSURFPlugin_Hypothesis::GetEnfVertex(TEnfVertexCoords coords)
- {
-
+{
if (_coordsEnfVertexMap.count(coords) > 0)
return _coordsEnfVertexMap[coords];
//=======================================================================
BLSURFPlugin_Hypothesis::TEnfVertex* BLSURFPlugin_Hypothesis::GetEnfVertex(const TEntry& theEnfVertexEntry)
- {
-
+{
if (_enfVertexEntryEnfVertexMap.count(theEnfVertexEntry) > 0)
return _enfVertexEntryEnfVertexMap[theEnfVertexEntry];
//=======================================================================
bool BLSURFPlugin_Hypothesis::ClearEnforcedVertex(const TEntry& theFaceEntry, double x, double y, double z,
- const TEntry& theVertexEntry) {
-
+ const TEntry& theVertexEntry)
+{
bool toNotify = false;
std::ostringstream msg;
TEnfVertex *oldEnfVertex;
//function : ClearEnforcedVertices
//=======================================================================
-bool BLSURFPlugin_Hypothesis::ClearEnforcedVertices(const TEntry& theFaceEntry) {
-
+bool BLSURFPlugin_Hypothesis::ClearEnforcedVertices(const TEntry& theFaceEntry)
+{
bool toNotify = false;
TEnfVertex *oldEnfVertex;
return hyp ? hyp->_GetAllEnforcedVerticesByEnfVertexEntry() : GetDefaultEnfVertexEntryEnfVertexMap();
}
-std::set<int> BLSURFPlugin_Hypothesis::GetEnfVertexNodeIDs(TEnfGroupName theGroupName)
+std::set<int> BLSURFPlugin_Hypothesis::GetEnfVertexNodeIDs(TEnfGroupName theGroupName)
{
TGroupNameNodeIDMap::const_iterator it = _groupNameNodeIDMap.find(theGroupName);
if (it != _groupNameNodeIDMap.end()) {
_groupNameNodeIDMap[theGroupName].insert(theNodeID);
}
-void BLSURFPlugin_Hypothesis::RemoveEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID)
+void BLSURFPlugin_Hypothesis::RemoveEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID)
{
TGroupNameNodeIDMap::iterator it = _groupNameNodeIDMap.find(theGroupName);
if (it != _groupNameNodeIDMap.end()) {
bool hasVerticesPeriodicity = false;
isOK = static_cast<bool>(load >> option_or_sm);
- if (isOK)
+ if (isOK) {
if ( (option_or_sm == "1")||(option_or_sm == "0") ) {
i = atoi(option_or_sm.c_str());
hasCADSurfOptions = true;
_phySizeRel = (bool) i;
}
- if (option_or_sm == "__OPTIONS_BEGIN__")
+ else if (option_or_sm == "__OPTIONS_BEGIN__")
hasOptions = true;
else if (option_or_sm == "__CUSTOM_OPTIONS_BEGIN__")
hasCustomOptions = true;
hasEdgesPeriodicity = true;
else if (option_or_sm == "__VERTICES_PERIODICITY_BEGIN__")
hasVerticesPeriodicity = true;
+ }
if (isOK && hasCADSurfOptions) {
isOK = static_cast<bool>(load >> i);
if (hasSizeMap) {
isOK = static_cast<bool>(load >> option_or_sm);
- if (isOK)
+ if (isOK) {
if (option_or_sm == "__ATTRACTORS_BEGIN__")
hasAttractor = true;
- if (option_or_sm == "__NEW_ATTRACTORS_BEGIN__")
+ else if (option_or_sm == "__NEW_ATTRACTORS_BEGIN__")
hasNewAttractor = true;
else if (option_or_sm == "__ENFORCED_VERTICES_BEGIN__")
hasEnforcedVertex = true;
hasEdgesPeriodicity = true;
else if (option_or_sm == "__VERTICES_PERIODICITY_BEGIN__")
hasVerticesPeriodicity = true;
+ }
}
std::string atEntry, atValue;
}
// New options in 2.9.6 (issue #17784)
- if ( static_cast<bool>( load >> _useSurfaceProximity ));
+ if ( static_cast<bool>( load >> _useSurfaceProximity ))
{
load >> _nbSurfaceProximityLayers;
load >> _surfaceProximityRatio;
//=============================================================================
bool BLSURFPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts,
- const SMESH_Mesh* theMesh)
+ const SMESH_Mesh* /*theMesh*/)
{
_phySize = GetDefaultPhySize(dflts._diagonal, _gen->GetBoundaryBoxSegmentation());
_minSize = GetDefaultMinSize(dflts._diagonal);
//================================================================================
bool BLSURFPlugin_Hypothesis::ToBool(const std::string& str, bool* isOk )
-
{
std::string s = str;
if ( isOk ) *isOk = true;
//================================================================================
double BLSURFPlugin_Hypothesis::ToDbl(const std::string& str, bool* isOk )
-
{
if ( str.empty() ) throw std::invalid_argument("Empty value provided");
//================================================================================
int BLSURFPlugin_Hypothesis::ToInt(const std::string& str, bool* isOk )
-
{
if ( str.empty() ) throw std::invalid_argument("Empty value provided");
void SetJacobianRectificationRespectGeometry( bool allowRectification );
bool GetJacobianRectificationRespectGeometry();
- void SetUseDeprecatedPatchMesher( bool /*useDeprecatedPatchMesher*/ );
+ void SetUseDeprecatedPatchMesher( bool useDeprecatedPatchMesher );
bool GetUseDeprecatedPatchMesher();
void SetJacobianRectification( bool allowRectification );
bool SetEnforcedVertex(TEntry theFaceEntry, TEnfName theVertexName, TEntry theVertexEntry, TEnfGroupName theGroupName,
double x = 0.0, double y = 0.0, double z = 0.0);
- TEnfVertexList GetEnfVertexList(const TEntry& theFaceEntry) ;
- TEnfVertexCoordsList GetEnfVertexCoordsList(const TEntry& theFaceEntry) ;
- TEntryList GetEnfVertexEntryList (const TEntry& theFaceEntry) ;
- TEnfVertex* GetEnfVertex(TEnfVertexCoords coords) ;
- TEnfVertex* GetEnfVertex(const TEntry& theEnfVertexEntry) ;
+ TEnfVertexList GetEnfVertexList(const TEntry& theFaceEntry);
+ TEnfVertexCoordsList GetEnfVertexCoordsList(const TEntry& theFaceEntry);
+ TEntryList GetEnfVertexEntryList (const TEntry& theFaceEntry);
+ TEnfVertex* GetEnfVertex(TEnfVertexCoords coords);
+ TEnfVertex* GetEnfVertex(const TEntry& theEnfVertexEntry);
void AddEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID);
- std::set<int> GetEnfVertexNodeIDs(TEnfGroupName theGroupName) ;
- void RemoveEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID) ;
+ std::set<int> GetEnfVertexNodeIDs(TEnfGroupName theGroupName);
+ void RemoveEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID);
- bool ClearEnforcedVertex(const TEntry& theFaceEntry, double x = 0.0, double y = 0.0, double z = 0.0, const TEntry& theVertexEntry="") ;
- bool ClearEnforcedVertices(const TEntry& theFaceEntry) ;
+ bool ClearEnforcedVertex(const TEntry& theFaceEntry, double x = 0.0, double y = 0.0, double z = 0.0, const TEntry& theVertexEntry="");
+ bool ClearEnforcedVertices(const TEntry& theFaceEntry);
void ClearAllEnforcedVertices();
void AddEnforcedVertex( const TEntry& theFaceEntry, TEnfVertex * theEnfVertex );
* \brief Internal enforced vertices
*/
void SetInternalEnforcedVertexAllFaces(bool toEnforceInternalVertices);
- const bool _GetInternalEnforcedVertexAllFaces() const { return _enforcedInternalVerticesAllFaces; }
+ bool _GetInternalEnforcedVertexAllFaces() const { return _enforcedInternalVerticesAllFaces; }
static bool GetInternalEnforcedVertexAllFaces( const BLSURFPlugin_Hypothesis* hyp );
void SetInternalEnforcedVertexAllFacesGroup(TEnfGroupName theGroupName);
const TEnfGroupName _GetInternalEnforcedVertexAllFacesGroup() const { return _enforcedInternalVerticesAllFacesGroup; }
typedef std::set< std::string > TOptionNames;
void SetOptionValue(const std::string& optionName,
- const std::string& optionValue) ;
+ const std::string& optionValue);
void SetPreCADOptionValue(const std::string& optionName,
- const std::string& optionValue) ;
- std::string GetOptionValue(const std::string& optionName, bool* isDefault=0) const ;
- std::string GetPreCADOptionValue(const std::string& optionName, bool* isDefault=0) const ;
+ const std::string& optionValue);
+ std::string GetOptionValue(const std::string& optionName, bool* isDefault=0) const;
+ std::string GetPreCADOptionValue(const std::string& optionName, bool* isDefault=0) const;
void ClearOption(const std::string& optionName);
void ClearPreCADOption(const std::string& optionName);
TOptionValues GetOptionValues() const;
std::string GetOption(const std::string& optionName) const;
std::string GetPreCADOption(const std::string& optionName) const;
- static bool ToBool(const std::string& str, bool* isOk=0) ;
- static double ToDbl(const std::string& str, bool* isOk=0) ;
- static int ToInt(const std::string& str, bool* isOk=0) ;
+ static bool ToBool(const std::string& str, bool* isOk=0);
+ static double ToDbl(const std::string& str, bool* isOk=0);
+ static int ToInt(const std::string& str, bool* isOk=0);
/*!
* Sets the file for export resulting mesh in GMF format
* \param theShape - the geometry of interest
* \retval bool - always false
*/
- virtual bool SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, const TopoDS_Shape& /*theShape*/);
+ virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
/*!
* \brief Initialize my parameter values by default parameters.
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetVerbosity(CORBA::Short theVal) {
+void BLSURFPlugin_Hypothesis_i::SetVerbosity(CORBA::Short theVal) {
ASSERT(myBaseImpl);
if (theVal < 0 || theVal > 100)
THROW_SALOME_CORBA_EXCEPTION( "Invalid verbosity level",SALOME::BAD_PARAM );
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetMaxNumberOfPointsPerPatch( CORBA::Long nb )
+void BLSURFPlugin_Hypothesis_i::SetMaxNumberOfPointsPerPatch( CORBA::Long nb )
{
if ( GetMaxNumberOfPointsPerPatch() != nb )
{
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetMaxNumberOfThreads( CORBA::Long nb )
+void BLSURFPlugin_Hypothesis_i::SetMaxNumberOfThreads( CORBA::Long nb )
{
if ( GetMaxNumberOfThreads() != nb )
{
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetPeriodicTolerance( CORBA::Double tol )
+void BLSURFPlugin_Hypothesis_i::SetPeriodicTolerance( CORBA::Double tol )
{
bool isDefault;
if ( GetImpl()->GetPreCADOptionValue("periodic_tolerance",&isDefault) != SMESH_Comment( tol ))
}
}
//=============================================================================
-double BLSURFPlugin_Hypothesis_i::GetPeriodicTolerance()
+double BLSURFPlugin_Hypothesis_i::GetPeriodicTolerance()
{
try{
return this->GetImpl()->GetPeriodicTolerance();
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetRequiredEntities( const char* howToTreat )
+void BLSURFPlugin_Hypothesis_i::SetRequiredEntities( const char* howToTreat )
{
if ( GetImpl()->GetRequiredEntities() != howToTreat )
{
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetSewingTolerance( CORBA::Double tol )
+void BLSURFPlugin_Hypothesis_i::SetSewingTolerance( CORBA::Double tol )
{
bool isDefault;
if ( GetImpl()->GetPreCADOptionValue("sewing_tolerance",&isDefault) != SMESH_Comment( tol ))
}
}
//=============================================================================
-CORBA::Double BLSURFPlugin_Hypothesis_i::GetSewingTolerance()
+CORBA::Double BLSURFPlugin_Hypothesis_i::GetSewingTolerance()
{
try
{
}
//=============================================================================
-void BLSURFPlugin_Hypothesis_i::SetTags( const char* howToTreat )
+void BLSURFPlugin_Hypothesis_i::SetTags( const char* howToTreat )
{
if ( GetImpl()->GetTags() != howToTreat )
{
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetOptionValue(const char* optionName, const char* optionValue)
- {
+{
ASSERT(myBaseImpl);
try {
std::string name( optionName );
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetPreCADOptionValue(const char* optionName, const char* optionValue)
- {
+{
ASSERT(myBaseImpl);
bool valueChanged = false;
try {
//=============================================================================
-char* BLSURFPlugin_Hypothesis_i::GetOptionValue(const char* optionName) {
+char* BLSURFPlugin_Hypothesis_i::GetOptionValue(const char* optionName) {
ASSERT(myBaseImpl);
try {
bool isDefault;
//=============================================================================
-char* BLSURFPlugin_Hypothesis_i::GetPreCADOptionValue(const char* optionName) {
+char* BLSURFPlugin_Hypothesis_i::GetPreCADOptionValue(const char* optionName) {
ASSERT(myBaseImpl);
try {
bool isDefault;
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetOptionValues(const BLSURFPlugin::string_array& options)
- {
+{
ASSERT(myBaseImpl);
for (CORBA::ULong i = 0; i < options.length(); ++i) {
string name_value_type = options[i].in();
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetPreCADOptionValues(const BLSURFPlugin::string_array& options)
- {
+{
ASSERT(myBaseImpl);
for ( CORBA::ULong i = 0; i < options.length(); ++i) {
string name_value_type = options[i].in();
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetAdvancedOption(const char* optionsAndValues)
-
{
if ( !optionsAndValues ) return;
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetSizeMapEntry(const char* entry, const char* sizeMap)
- {
+{
ASSERT(myBaseImpl);
if ( !entry || !entry[0] )
THROW_SALOME_CORBA_EXCEPTION( "SetSizeMapEntry(): empty geom entry", SALOME::BAD_PARAM );
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetConstantSizeMapEntry(const char* entry, GEOM::shape_type shapeType, CORBA::Double sizeMap)
- {
+{
ASSERT(myBaseImpl);
bool valueChanged = false;
std::ostringstream sizeMapFunction;
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetAttractorEntry(const char* entry, const char* attractor)
- {
+{
ASSERT(myBaseImpl);
bool valueChanged = false;
try {
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetClassAttractorEntry(const char* entry, const char* att_entry, CORBA::Double StartSize, CORBA::Double EndSize, CORBA::Double ActionRadius, CORBA::Double ConstantRadius) //TODO ?? finir
-
{
ASSERT(myBaseImpl);
//bool valueChanged = false;
//=============================================================================
-char* BLSURFPlugin_Hypothesis_i::GetSizeMapEntry(const char* entry) {
+char* BLSURFPlugin_Hypothesis_i::GetSizeMapEntry(const char* entry) {
ASSERT(myBaseImpl);
try {
return CORBA::string_dup(this->GetImpl()->GetSizeMapEntry(entry).c_str());
//=============================================================================
-char* BLSURFPlugin_Hypothesis_i::GetAttractorEntry(const char* entry) {
+char* BLSURFPlugin_Hypothesis_i::GetAttractorEntry(const char* entry) {
ASSERT(myBaseImpl);
try {
return CORBA::string_dup(this->GetImpl()->GetAttractorEntry(entry).c_str());
// // TODO coder cette fonction (utilis??e pour savoir si la valeur a chang??
// // A finir pour le dump
// char* BLSURFPlugin_Hypothesis_i::GetClassAttractorEntry(const char* entry)
-//
+//
// {
// ASSERT(myBaseImpl);
// try {
for ( int i = 0 ; atIt != attractors.end(); ++atIt, ++i ) {
string faceEntry = atIt->first;
string attEntry;
- double startSize, endSize, infDist, constDist;
+ double startSize=0., endSize=0., infDist=0., constDist=0.; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see below)
if ( !atIt->second->Empty() ) {
attEntry = atIt->second->GetAttractorEntry();
std::vector<double> params = atIt->second->GetParameters();
result[i].startSize = startSize;
result[i].endSize = endSize;
result[i].infDist = infDist;
- result[i].constDist = constDist;
+ result[i].constDist = constDist; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see above)
}
return result._retn();
}
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetSizeMapEntries(const BLSURFPlugin::string_array& sizeMaps)
- {
+{
ASSERT(myBaseImpl);
for ( CORBA::ULong i = 0; i < sizeMaps.length(); ++i) {
string entry_sizemap = sizeMaps[i].in();
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetSizeMap(const GEOM::GEOM_Object_ptr GeomObj, const char* sizeMap)
-
{
ASSERT(myBaseImpl);
string entry;
void BLSURFPlugin_Hypothesis_i::UnsetCustomSizeMap(GEOM::GEOM_Object_ptr GeomObj)
{}
- void BLSURFPlugin_Hypothesis_i::SetCustomSizeMapEntry(const char* entry,const char* sizeMap )
+ void BLSURFPlugin_Hypothesis_i::SetCustomSizeMapEntry(const char* entry,const char* sizeMap )
{}
- char* BLSURFPlugin_Hypothesis_i::GetCustomSizeMapEntry(const char* entry)
+ char* BLSURFPlugin_Hypothesis_i::GetCustomSizeMapEntry(const char* entry)
{}
void BLSURFPlugin_Hypothesis_i::UnsetCustomSizeMapEntry(const char* entry)
* Set/get/unset an enforced vertex on face - OBSOLETE
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y,
- CORBA::Double z) {
+ CORBA::Double z) {
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
* Set/get/unset an enforced vertex with name on face
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertexNamed(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y,
- CORBA::Double z, const char* theVertexName) {
+ CORBA::Double z, const char* theVertexName) {
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
* Set/get/unset an enforced vertex with geom object on face
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex)
- {
+{
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
* Set an enforced vertex with group name on face
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertexNamedWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z,
const char* theVertexName, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
* Set an enforced vertex with geom entry and group name on face
*/
bool BLSURFPlugin_Hypothesis_i::SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
// * Are internal enforced vertices used for a face ?
// */
//CORBA::Boolean BLSURFPlugin_Hypothesis_i::GetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace)
-// {
+//{
// ASSERT(myBaseImpl);
// if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
* Get the list of all enforced vertices
*/
BLSURFPlugin::TEnfVertexList* BLSURFPlugin_Hypothesis_i::GetEnforcedVertices(GEOM::GEOM_Object_ptr theFace)
- {
+{
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
}
bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y,
- CORBA::Double z) {
+ CORBA::Double z) {
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
}
bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex)
- {
+{
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
}
}
-bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertices(GEOM::GEOM_Object_ptr theFace) {
+bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertices(GEOM::GEOM_Object_ptr theFace) {
ASSERT(myBaseImpl);
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
/*!
* Set/get/unset an enforced vertex on face - NEW (no face)
*/
-bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
+bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
{
ASSERT(myBaseImpl);
/*!
* Set/get/unset an enforced vertex with name on face
*/
-bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName)
+bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName)
{
try {
return SetEnforcedVertexEntry("", x, y, z, theVertexName);
* Set/get/unset an enforced vertex with geom object on face
*/
bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex)
-
{
if ((theVertex->GetShapeType() != GEOM::VERTEX) && (theVertex->GetShapeType() != GEOM::COMPOUND)) {
THROW_SALOME_CORBA_EXCEPTION("theVertex shape type is not VERTEX or COMPOUND", SALOME::BAD_PARAM);
* Set an enforced vertex with group name on face
*/
bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
*/
bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z,
const char* theVertexName, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
* Set an enforced vertex with geom entry and group name on face
*/
bool BLSURFPlugin_Hypothesis_i::AddEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, const char* theGroupName)
-
{
if ((theVertex->GetShapeType() != GEOM::VERTEX) && (theVertex->GetShapeType() != GEOM::COMPOUND)) {
THROW_SALOME_CORBA_EXCEPTION("theVertex shape type is not VERTEX or COMPOUND", SALOME::BAD_PARAM);
}
}
-bool BLSURFPlugin_Hypothesis_i::RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
+bool BLSURFPlugin_Hypothesis_i::RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
{
try {
return UnsetEnforcedVertexEntry("", x, y, z);
}
bool BLSURFPlugin_Hypothesis_i::RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex)
-
{
if ((theVertex->GetShapeType() != GEOM::VERTEX) && (theVertex->GetShapeType() != GEOM::COMPOUND)) {
THROW_SALOME_CORBA_EXCEPTION("theVertex shape type is not VERTEX or COMPOUND", SALOME::BAD_PARAM);
}
}
-bool BLSURFPlugin_Hypothesis_i::RemoveEnforcedVertices()
+bool BLSURFPlugin_Hypothesis_i::RemoveEnforcedVertices()
{
try {
return UnsetEnforcedVerticesEntry("");
const char* theVertexName,
const char* theVertexEntry,
const char* theGroupName)
-
{
bool newValue = false;
if (string(theVertexEntry).empty()) {
}
BLSURFPlugin::TEnfVertexList* BLSURFPlugin_Hypothesis_i::GetEnforcedVerticesEntry(const char* entry)
-
{
try {
BLSURFPlugin::TEnfVertexList_var vertexList = new BLSURFPlugin::TEnfVertexList();
}
}
-bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertexEntry(const char* theFaceEntry, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexEntry)
+bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVertexEntry(const char* theFaceEntry, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexEntry)
{
ASSERT(myBaseImpl);
return res;
}
-bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVerticesEntry(const char* theFaceEntry)
+bool BLSURFPlugin_Hypothesis_i::UnsetEnforcedVerticesEntry(const char* theFaceEntry)
{
ASSERT(myBaseImpl);
* Enable internal enforced vertices on specific face if requested by user
*
void BLSURFPlugin_Hypothesis_i::SetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices)
-
{
try {
SetInternalEnforcedVertexWithGroup(theFace, toEnforceInternalVertices);
}
void BLSURFPlugin_Hypothesis_i::SetInternalEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName)
-
{
-
if ((theFace->GetShapeType() != GEOM::FACE) && (theFace->GetShapeType() != GEOM::COMPOUND)) {
THROW_SALOME_CORBA_EXCEPTION("theFace shape type is not FACE or COMPOUND", SALOME::BAD_PARAM);
}
}
void BLSURFPlugin_Hypothesis_i::SetInternalEnforcedVertexEntry(const char* theFaceEntry, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName)
-
{
ASSERT(myBaseImpl);
try {
void BLSURFPlugin_Hypothesis_i::SetEnforcedVertexGroupName(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* groupName)
-
{
ASSERT(myBaseImpl);
try {
void BLSURFPlugin_Hypothesis_i::AddPreCadFacesPeriodicity(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2)
-
{
ASSERT(myBaseImpl);
const GEOM::ListOfGO theSourceVertices;
void BLSURFPlugin_Hypothesis_i::AddPreCadFacesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2,
const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
-
{
ASSERT(myBaseImpl);
void BLSURFPlugin_Hypothesis_i::AddPreCadFacesPeriodicityEntry(const char* theFace1Entry, const char* theFace2Entry,
const BLSURFPlugin::TEntryList& theSourceVerticesEntriesCorba, const BLSURFPlugin::TEntryList& theTargetVerticesEntriesCorba)
-
{
-
ASSERT(myBaseImpl);
// Convert BLSURFPlugin::TEntryList to vector<string>
pd << listEntriesTxt.c_str();
pd << ")";
}
- else
+ else
pd << _this() << ".AddPreCadFacesPeriodicity(" << theFace1Entry << ", " << theFace2Entry << ")";
}
void BLSURFPlugin_Hypothesis_i::AddPreCadEdgesPeriodicity(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2)
-
{
ASSERT(myBaseImpl);
const GEOM::ListOfGO theSourceVertices;
void BLSURFPlugin_Hypothesis_i::AddPreCadEdgesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2,
const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
-
{
ASSERT(myBaseImpl);
void BLSURFPlugin_Hypothesis_i::AddPreCadEdgesPeriodicityEntry(const char* theEdge1Entry, const char* theEdge2Entry,
const BLSURFPlugin::TEntryList& theSourceVerticesEntriesCorba, const BLSURFPlugin::TEntryList& theTargetVerticesEntriesCorba)
-
{
ASSERT(myBaseImpl);
* Set/get/unset an enforced vertex on geom object
*/
// OBSOLETE
- bool SetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z)
- ;
- bool SetEnforcedVertexNamed(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName)
- ;
- bool SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex)
- ;
- bool SetEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName)
- ;
- bool SetEnforcedVertexNamedWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName, const char* theGroupName)
- ;
- bool SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex, const char* theGroupName)
- ;
-
- BLSURFPlugin::TEnfVertexList* GetEnforcedVertices(GEOM::GEOM_Object_ptr theFace) ;
-
- bool UnsetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z)
- ;
- bool UnsetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex)
- ;
- bool UnsetEnforcedVertices(GEOM::GEOM_Object_ptr theFace) ;
+ bool SetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z);
+ bool SetEnforcedVertexNamed(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName);
+ bool SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex);
+ bool SetEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName);
+ bool SetEnforcedVertexNamedWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName, const char* theGroupName);
+ bool SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex, const char* theGroupName);
+
+ BLSURFPlugin::TEnfVertexList* GetEnforcedVertices(GEOM::GEOM_Object_ptr theFace);
+
+ bool UnsetEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Double x, CORBA::Double y, CORBA::Double z);
+ bool UnsetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theFace, GEOM::GEOM_Object_ptr theVertex);
+ bool UnsetEnforcedVertices(GEOM::GEOM_Object_ptr theFace);
// NEW - no face
- bool AddEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
- ;
- bool AddEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName)
- ;
- bool AddEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex)
- ;
- bool AddEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName)
- ;
- bool AddEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName, const char* theGroupName)
- ;
- bool AddEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, const char* theGroupName)
- ;
-
- bool RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z)
- ;
- bool RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex)
- ;
- bool RemoveEnforcedVertices() ;
+ bool AddEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z);
+ bool AddEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName);
+ bool AddEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex);
+ bool AddEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theGroupName);
+ bool AddEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName, const char* theGroupName);
+ bool AddEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, const char* theGroupName);
+
+ bool RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z);
+ bool RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex);
+ bool RemoveEnforcedVertices();
/*!
* Set/get/unset an enforced vertex on geom object given by entry
*/
bool SetEnforcedVertexEntry(const char* theFaceEntry, CORBA::Double x = 0, CORBA::Double y = 0, CORBA::Double z = 0,
- const char* theVertexName = "", const char* theVertexEntry = "", const char* theGroupName = "")
- ;
+ const char* theVertexName = "", const char* theVertexEntry = "", const char* theGroupName = "");
- BLSURFPlugin::TEnfVertexList* GetEnforcedVerticesEntry(const char* theFaceEntry) ;
+ BLSURFPlugin::TEnfVertexList* GetEnforcedVerticesEntry(const char* theFaceEntry);
bool UnsetEnforcedVertexEntry(const char* theFaceEntry, CORBA::Double x, CORBA::Double y, CORBA::Double z,
- const char* theVertexEntry = "") ;
- bool UnsetEnforcedVerticesEntry(const char* theFaceEntry) ;
+ const char* theVertexEntry = "");
+ bool UnsetEnforcedVerticesEntry(const char* theFaceEntry);
/*!
* To add internal vertices as enforced vertices
char* GetInternalEnforcedVertexAllFacesGroup();
// Enable internal enforced vertices on specific face if requested by user
-// void SetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices) ;
-// void SetInternalEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName = "") ;
-// void SetInternalEnforcedVertexEntry(const char* theFaceEntry, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName = "") ;
-// CORBA::Boolean GetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace) ;
-// CORBA::Boolean GetInternalEnforcedVertexEntry(const char* theFaceEntry) ;
+// void SetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices);
+// void SetInternalEnforcedVertexWithGroup(GEOM::GEOM_Object_ptr theFace, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName = "");
+// void SetInternalEnforcedVertexEntry(const char* theFaceEntry, CORBA::Boolean toEnforceInternalVertices, const char* theGroupName = "");
+// CORBA::Boolean GetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace);
+// CORBA::Boolean GetInternalEnforcedVertexEntry(const char* theFaceEntry);
///////////////////////
// PERIODICITY //
BLSURFPlugin::TPeriodicityList* PreCadVectorToSequence(const ::BLSURFPlugin_Hypothesis::TPreCadPeriodicityVector& preCadPeriodicityVector);
- void AddPreCadFacesPeriodicity(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2)
- ;
+ void AddPreCadFacesPeriodicity(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2);
void AddPreCadFacesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2,
- const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
- ;
+ const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices);
void AddPreCadFacesPeriodicityEntry(const char* theFace1Entry, const char* theFace2Entry,
- const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries)
- ;
+ const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries);
- void AddPreCadEdgesPeriodicity(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2)
- ;
+ void AddPreCadEdgesPeriodicity(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2);
void AddPreCadEdgesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2,
- const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
- ;
+ const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices);
void AddPreCadEdgesPeriodicityEntry(const char* theEdge1Entry, const char* theEdge2Entry,
- const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries)
- ;
+ const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries);
///////////////////////
static PyMethodDef PyStdOut_methods[] = {
{"write", (PyCFunction)PyStdOut_write, METH_VARARGS,
PyDoc_STR("write(string) -> None")},
- {NULL, NULL} /* sentinel */
+ {0, 0, 0, 0} /* sentinel */
};
static PyMemberDef PyStdOut_memberlist[] = {
{(char*)"softspace", T_INT, offsetof(PyStdOut, softspace), 0,
(char*)"flag indicating that a space needs to be printed; used by print"},
- {NULL} /* Sentinel */
+ {0, 0, 0, 0, 0} /* Sentinel */
};
static PyTypeObject PyStdOut_Type = {
0, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
+ 0, /*tp_bases*/
+ 0, /*tp_mro*/
+ 0, /*tp_cache*/
+ 0, /*tp_subclasses*/
+ 0, /*tp_weaklist*/
+ 0, /*tp_del*/
+ 0, /*tp_version_tag*/
+ 0, /*tp_finalize*/
};
PyObject * newPyStdOut( std::string& out )
public:
EnforcedTreeWidgetDelegate(QObject *parent = 0);
- QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem & /*option*/,
+ QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem & option,
const QModelIndex &index) const;
void setEditorData(QWidget *editor, const QModelIndex &index) const;