TopoDS_Face F = TopoDS::Face(ex.Current());
Handle(Poly_Triangulation) Tr = BRep_Tool::Triangulation(F, L);
if(Tr.IsNull())
- MESSAGE("Error, null layer" )
+ MESSAGE("Error, null layer" );
nbNodes = Tr->NbNodes();
const TColgp_Array1OfPnt& Nodes = Tr->Nodes();
}
}
- // Creation du point d'initialisation, c'est \80 dire le centre de gravit\89
- //g\89om\89trique de la boite englobante
+ // Creation du point d'initialisation, c'est e dire le centre de gravite
+ // geometrique de la boite englobante
InitPoint.SetX(0.5 * (Xmin + Xmax));
InitPoint.SetY(0.5 * (Ymin + Ymax));
TopoDS_Face F = TopoDS::Face(ex.Current());
Handle(Poly_Triangulation) Tr = BRep_Tool::Triangulation(F, L);
if(Tr.IsNull())
- MESSAGE("Error, null layer" )
+ MESSAGE("Error, null layer" );
const Poly_Array1OfTriangle& triangles = Tr->Triangles();
Standard_Integer nbTriangles = Tr->NbTriangles();
//nbNodes = Tr->NbNodes();
const TColgp_Array1OfPnt& Nodes = Tr->Nodes();
// Calcul des volumes de chaque triangle, de chaque face
- //en tenant compte des triangles coup\89s par le plan de section
+ // en tenant compte des triangles coupes par le plan de section
for (i=1;i<=nbTriangles;i++)
{
Bsup = Zmax;
if(Binf>Bsup)
{
- MESSAGE("error, Bound + < Bound - in dichotomy")
+ MESSAGE("error, Bound + < Bound - in dichotomy");
return -1;
}
tempBsupVolume = CalculateVolume(Bsup);
if (Constante>tempBsupVolume || Constante<tempBinfVolume)
{
- MESSAGE("error, algorithm start Impossible. Wrong constant value" )
+ MESSAGE("error, algorithm start Impossible. Wrong constant value" );
return -1;
}
}
endMethod:
- MESSAGE("La ligne de flottaison correspondant a la constante :"<<Constante<<" est a la cote Z = "<<c)
+ MESSAGE("La ligne de flottaison correspondant a la constante :"<<Constante<<" est a la cote Z = "<<c);
return c;
}
return Point;
}
-//Fonction calculant le volume \89l\89mentaire de chaque t\89traedre \80 partir de 3 points
+// Fonction calculant le volume elementaire de chaque tetraedre e partir de 3 points
Standard_Real VolumeSection::ElementaryVolume(gp_Pnt P1,gp_Pnt P2,gp_Pnt P3)
{
Standard_Real Determinant;
//=====================================================================================
void EntityGUI::DisplaySimulationShape( const TopoDS_Shape& S1, const TopoDS_Shape& S2 )
{
- MESSAGE("EntityGUI::DisplaySimulationShape")
+ MESSAGE("EntityGUI::DisplaySimulationShape");
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
//==================================================================================
void EntityGUI::EraseSimulationShape()
{
- MESSAGE("EntityGUI::EraseSimulationShape")
+ MESSAGE("EntityGUI::EraseSimulationShape");
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
//=================================================================================
void EntityGUI_FeatureDetectorDlg::ConstructorsClicked(int id)
{
- MESSAGE("Constructor id ="<<id)
+ MESSAGE("Constructor id ="<<id);
myConstructorId = id;
switch (id)
{
void EntityGUI_FeatureDetectorDlg::setStartPnt(const gp_Pnt& theStartPnt)
{
myStartPnt = theStartPnt;
- MESSAGE("myStartPnt = ("<<theStartPnt.X()<<", "<<theStartPnt.Y()<<")")
+ MESSAGE("myStartPnt = ("<<theStartPnt.X()<<", "<<theStartPnt.Y()<<")");
}
//=================================================================================
void EntityGUI_FeatureDetectorDlg::setEndPnt(const gp_Pnt& theEndPnt)
{
myEndPnt = theEndPnt;
- MESSAGE("myEndPnt = ("<<theEndPnt.X()<<", "<<theEndPnt.Y()<<")")
+ MESSAGE("myEndPnt = ("<<theEndPnt.X()<<", "<<theEndPnt.Y()<<")");
if (setSelectionRect() && myDetector->GetImgHeight() > 0)
showImageSample();
}
bool insert;
- MESSAGE("hierarchy.size() =" << hierarchy.size())
+ MESSAGE("hierarchy.size() =" << hierarchy.size());
if ( hierarchy.size() < 1 ) {
- getOperation()->SetErrorCode( "Impossible detected contours" );
- return false;
+ getOperation()->SetErrorCode( "Impossible detected contours" );
+ return false;
}
for( ; idx >= 0; idx = hierarchy[idx][0])
//=================================================================================
void EntityGUI_PictureImportDlg::ClickOnOk()
{
- MESSAGE("EntityGUI_PictureImportDlg::ClickOnOk()")
+ MESSAGE("EntityGUI_PictureImportDlg::ClickOnOk()");
setIsApplyAndClose( true );
if ( ClickOnApply() )
ClickOnCancel();
//=================================================================================
bool EntityGUI_PictureImportDlg::ClickOnApply()
{
- MESSAGE("EntityGUI_PictureImportDlg::ClickOnApply()")
+ MESSAGE("EntityGUI_PictureImportDlg::ClickOnApply()");
if ( !onAccept() )
return false;
gp_Ax3 aLCS;
if (theGeomObj || aShape.IsNull()) {
- MESSAGE("CORBA::is_nil(theGeomObj) || aShape.IsNull()")
+ MESSAGE("CORBA::is_nil(theGeomObj) || aShape.IsNull()");
}
aLCS.Transform(aShape.Location().Transformation());
//=================================================================================
void EntityGUI_SketcherDlg::InitClick()
{
- MESSAGE("EntityGUI_SketcherDlg::InitClick()")
+ MESSAGE("EntityGUI_SketcherDlg::InitClick()");
disconnect( myGeometryGUI->getApp()->selectionMgr(), 0, this, 0 );
myCheckFlag = 0;
//=================================================================================
void EntityGUI_SketcherDlg::PointClicked( int constructorId )
{
- MESSAGE("PointClicked")
+ MESSAGE("PointClicked");
myConstructorPntId = constructorId;
GroupPt->RB_Point3->setEnabled( true );
int buttonId = GroupPt2->ButtonGroup->checkedId();
//=================================================================================
void EntityGUI_SketcherDlg::Point2Clicked( int constructorId )
{
- MESSAGE("Point2Clicked")
+ MESSAGE("Point2Clicked");
InitClick();
// Get setting of step value from file configuration
//=================================================================================
void EntityGUI_SketcherDlg::ClickOnEnd()
{
- MESSAGE("EntityGUI_SketcherDlg::ClickOnEnd()")
+ MESSAGE("EntityGUI_SketcherDlg::ClickOnEnd()");
if ( sender() == MainWidget->buttonClose ) {
// Verify validity of commands
if ( myCommand.count() <= 2 ) {
//=================================================================================
bool EntityGUI_SketcherDlg::ClickOnApply()
{
- MESSAGE("EntityGUI_SketcherDlg::ClickOnApply()")
+ MESSAGE("EntityGUI_SketcherDlg::ClickOnApply()");
if ( sender() && sender()->inherits( "QPushButton" ) )
( (QPushButton*)sender() )->setFocus(); // to update value of currently edited spin-box (PAL11948)
//=================================================================================
void EntityGUI_SketcherDlg::SelectionIntoArgument()
{
- MESSAGE("EntityGUI_SketcherDlg::SelectionIntoArgument")
+ MESSAGE("EntityGUI_SketcherDlg::SelectionIntoArgument");
myEditCurrentArgument->setText( "" );
LightApp_SelectionMgr* aSelMgr = myGeometryGUI->getApp()->selectionMgr();
//=================================================================================
void EntityGUI_SketcherDlg::ActivateThisDialog()
{
- MESSAGE("EntityGUI_SketcherDlg::ActivateThisDialog()")
+ MESSAGE("EntityGUI_SketcherDlg::ActivateThisDialog()");
myGeometryGUI->EmitSignalDeactivateDialog();
setEnabled( true );
myGeometryGUI->SetActiveDialogBox( this );
//=================================================================================
void EntityGUI_SketcherDlg::closeEvent( QCloseEvent* e )
{
- MESSAGE("EntityGUI_SketcherDlg::closeEvent")
+ MESSAGE("EntityGUI_SketcherDlg::closeEvent");
//myGeometryGUI->SetState( -1 );
disconnect( myGeometryGUI->getApp()->selectionMgr(), 0, this, 0 );
myGeometryGUI->getApp()->updateActions();
//=================================================================================
bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
{
- MESSAGE("EntityGUI_SketcherDlg::execute")
+ MESSAGE("EntityGUI_SketcherDlg::execute");
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
int DigNum = qAbs(aPrecision); // options for the format of numbers in myNewCommand
gp_Ax3 aLCS;
if (CORBA::is_nil( geomObj ) || aShape.IsNull())
{
- MESSAGE("CORBA::is_nil( geomObj ) || aShape.IsNull()")
+ MESSAGE("CORBA::is_nil( geomObj ) || aShape.IsNull()");
}
aLCS.Transform(aShape.Location().Transformation());
if (aShape.ShapeType() == TopAbs_FACE)
#define C_SQR_BRACKET ']'
#define PY_NULL "None"
-#ifdef _DEBUG_
-static int MYDEBUG = 0;
-using namespace std;
-#else
-static int MYDEBUG = 0;
-#endif
-
// VSR 29/08/2017: 0023327, 0023428: eliminate unnecessary lines in Python dump
// Next macro, when defined, causes appearing of SubShapeAllIDs(), SubShapeAllSortedIDs(), GetSameIDs()
// and other such commands in Python dump.
void ReplaceVariables(TCollection_AsciiString& theCommand,
const TVariablesList& theVariables)
{
- if (MYDEBUG)
+ if (SALOME::VerbosityActivated())
std::cout<<"Command : "<<theCommand<<std::endl;
- if (MYDEBUG) {
+ if (SALOME::VerbosityActivated()) {
std::cout<<"All Entries:"<<std::endl;
TVariablesList::const_iterator it = theVariables.begin();
for(;it != theVariables.end();it++)
if( aCommand.Length() == 0 )
break;
- if (MYDEBUG)
+ if (SALOME::VerbosityActivated())
std::cout<<"Sub-command : "<<aCommand<<std::endl;
Standard_Integer aStartCommandPos = theCommand.Location(aCommand,1,theCommand.Length());
//Remove white spaces
anEntry.RightAdjust();
anEntry.LeftAdjust();
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"Result entry : '" <<anEntry<<"'"<<std::endl;
if ( anEntry.IsEmpty() ) {
anEntry.Remove( 1, 1 );
anEntry.RightAdjust();
anEntry.LeftAdjust();
- if(MYDEBUG)
- std::cout<<"Sub-entry : '" <<anEntry<<"'"<<std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"Sub-entry : '" <<anEntry<<"'"<<std::endl;
}
//Find variables used for object construction
aStates = (*it).second;
if(!aStates) {
- if(MYDEBUG)
- std::cout<<"Valiables list empty!!!"<<std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"Valiables list empty!!!"<<std::endl;
aCommandIndex++;
continue;
}
TState aVariables = aStates->GetCurrectState();
- if(MYDEBUG) {
+ if(SALOME::VerbosityActivated()) {
std::cout<<"Variables from SObject:"<<std::endl;
for (size_t i = 0; i < aVariables.size();i++)
std::cout<<"\t Variable["<<i<<"] = "<<aVariables[i].myVariable<<std::endl;
while(aCommand.Location(aTotalNbParams,COMMA,1,aCommand.Length()))
aTotalNbParams++;
- if(MYDEBUG)
- std::cout<<"aTotalNbParams = "<<aTotalNbParams<<std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"aTotalNbParams = "<<aTotalNbParams<<std::endl;
Standard_Integer aFirstParam = aNbEntries;
if ( aStartPos == aEndPos )
continue; // PAL20889: for "[]"
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"aStartPos = "<<aStartPos<<", aEndPos = "<<aEndPos<<std::endl;
aVar = aCommand.SubString(aStartPos, aEndPos-1);
aVar.RightAdjust();
aVar.LeftAdjust();
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"Variable: '"<< aVar <<"'"<<std::endl;
// specific case for sketcher
aEndSectionPos = aVar.Length();
aSection = aVar.SubString(aStartSectionPos, aEndSectionPos-1);
- if(MYDEBUG)
- std::cout<<"aSection: "<<aSection<<std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"aSection: "<<aSection<<std::endl;
Standard_Integer aNbParams = 1;
while( aSection.Location( aNbParams, ' ', 1, aSection.Length() ) )
else
aEndParamPos = aSection.Length() + 1;
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"aParamIndex: "<<aParamIndex<<" aStartParamPos: " <<aStartParamPos<<" aEndParamPos: "<<aEndParamPos<<std::endl;
if ( aStartParamPos == aEndParamPos)
continue;
aParameter = aSection.SubString(aStartParamPos, aEndParamPos-1);
- if(MYDEBUG)
- std::cout<<"aParameter: "<<aParameter<<std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"aParameter: "<<aParameter<<std::endl;
if(iVar >= aVariables.size())
continue;
aReplacedParameter.InsertAfter(aReplacedParameter.Length(),"'");
}
- if(MYDEBUG)
- std::cout<<"aSection before : "<<aSection<< std::endl;
+ if(SALOME::VerbosityActivated())
+ std::cout<<"aSection before : "<<aSection<< std::endl;
aSection.Remove(aStartParamPos, aEndParamPos - aStartParamPos);
aSection.Insert(aStartParamPos, aReplacedParameter);
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"aSection after : "<<aSection<<std::endl<<std::endl;
iVar++;
}
- if(MYDEBUG)
+
+ if(SALOME::VerbosityActivated())
std::cout<<"aVar before : "<<aVar<<std::endl;
+
aVar.Remove(aStartSectionPos, aEndSectionPos - aStartSectionPos);
aVar.Insert(aStartSectionPos, aSection);
- if(MYDEBUG)
+
+ if(SALOME::VerbosityActivated())
std::cout<<"aVar after : "<<aVar<<std::endl<<std::endl;
}
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"aCommand before : "<<aCommand<<std::endl;
aCommand.Remove(aStartPos, aEndPos - aStartPos);
aCommand.Insert(aStartPos, aVar);
- if(MYDEBUG)
+ if(SALOME::VerbosityActivated())
std::cout<<"aCommand after : "<<aCommand<<std::endl;
break;
aStates->IncrementState();
}
- if (MYDEBUG)
+ if (SALOME::VerbosityActivated())
std::cout<<"Command : "<<theCommand<<std::endl;
}
bool res = false;
if ( !getStudy() || hasCommand() )
{
- MESSAGE("Getting out from openCommand()")
+ MESSAGE("Getting out from openCommand()");
return res;
}
}
else
{
- MESSAGE("anOp->_is_nil() = true")
- }
+ MESSAGE("anOp->_is_nil() = true");
+ }
return res;
}
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
if ( !appStudy )
{
- MESSAGE("appStudy is empty")
+ MESSAGE("appStudy is empty");
return false;
}
_PTR(Study) aStudy = appStudy->studyDS();
catch( const SALOME::SALOME_Exception& e ) {
SalomeApp_Tools::QtCatchCorbaException( e );
abortCommand();
- MESSAGE("Exception caught")
- }
+ MESSAGE("Exception caught");
+ }
updateViewer();
- MESSAGE("result ="<<result)
- return result;
+ MESSAGE("result ="<<result);
+ return result;
}
Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::GetSubShapesIndices (Handle(GEOM_Object) theMainShape,
std::list<Handle(GEOM_Object)> theSubShapes)
{
- MESSAGE("GEOMImpl_IShapesOperations::GetSubShapesIndices")
+ MESSAGE("GEOMImpl_IShapesOperations::GetSubShapesIndices");
SetErrorCode(KO);
Handle(TColStd_HSequenceOfInteger) aSeq = new TColStd_HSequenceOfInteger;
TopoDS_Shape aMainShape = theMainShape->GetValue();
if (aMainShape.IsNull())
{
- MESSAGE("NULL main shape")
+ MESSAGE("NULL main shape");
return NULL;
}
TopoDS_Shape aSubShape = (*it)->GetValue();
if (aSubShape.IsNull())
{
- MESSAGE("NULL subshape")
+ MESSAGE("NULL subshape");
return NULL;
}
int id = anIndices.FindIndex(aSubShape);
#include "GEOMUtils_XmlHandler.hxx"
#include <Basics_Utils.hxx>
+#include "utilities.h"
#include <libxml/parser.h>
#include <algorithm>
#include <unistd.h>
#endif
-//#define MYDEBUG
-
namespace
{
const char* env_var = "GEOM_PluginsList";
return xmlPaths;
}
-#ifdef MYDEBUG
void dumpinfo(const GEOMUtils::PluginInfo& info)
{
printf("DUMPING PLUGIN INFO\n");
printf("-----\n");
}
}
-#endif
}
namespace GEOMUtils
//xmlCleanupParser();//vsr: xmlCleanupParser should not be called from the application
} // end xml doc
}
-#ifdef MYDEBUG
- dumpinfo(info);
-#endif
+
+ if (SALOME::VerbosityActivated())
+ dumpinfo(info);
+
return info;
}
}
Handle(::GEOM_Object) aSh = GetObjectImpl(theSubShapes[ind]);
if (aSh.IsNull())
{
- MESSAGE("NULL shape")
+ MESSAGE("NULL shape");
return aSeq._retn();
}
aShapes.push_back(aSh);
//vtkStandardNewMacro(GEOM_Actor)
-#ifndef MYDEBUG
-//#define MYDEBUG
-#endif
-
GEOM_Actor::GEOM_Actor():
isOnlyVertex(false),
// defined in this class !!!
myPolyDataMapper(GEOM_PainterPolyDataMapper::New(),true)
{
-#ifdef MYDEBUG
- MESSAGE (this<< " GEOM_Actor::GEOM_Actor");
-#endif
+
+ MESSAGE(this<< " GEOM_Actor::GEOM_Actor");
myPolyDataMapper->SetInputConnection(myAppendFilter->GetOutputPort());
vtkProperty* aProperty;
GEOM_Actor::~GEOM_Actor()
{
-#ifdef MYDEBUG
- MESSAGE (this<< " ~GEOM_Actor::GEOM_Actor");
-#endif
+ MESSAGE(this << " ~GEOM_Actor::GEOM_Actor");
+
myTextActor->Delete();
myHighlightProp->Delete();
myPreHighlightProp->Delete();
GEOM_Actor::
setDisplayMode(int theMode)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::setDisplayMode = "<<theMode );
-#endif
+ MESSAGE("GEOM_Actor::setDisplayMode = " << theMode);
if ( theMode == (int)eShadingWithEdges ) {
// Coloring edges
GEOM_Actor::
SetSelected(bool theIsSelected)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SetSelected = "<<theIsSelected );
-#endif
+ MESSAGE("GEOM_Actor::SetSelected = " << theIsSelected);
myIsSelected = theIsSelected;
SetVisibility(GetVisibility());
GEOM_Actor::
SetVisibility(int theVisibility)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SetVisibility = "<<theVisibility <<" myIsSelected="<< myIsSelected
- << " theVisibility="<<theVisibility<<" myIsPreselected="<<myIsPreselected );
-#endif
+ MESSAGE("GEOM_Actor::SetVisibility = " << theVisibility << " myIsSelected=" << myIsSelected
+ << " theVisibility=" << theVisibility << " myIsPreselected=" << myIsPreselected);
SALOME_Actor::SetVisibility(theVisibility);
void GEOM_Actor::SetHighlightProperty(vtkProperty* Prop)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SetHighlightProperty" );
-#endif
+ MESSAGE("GEOM_Actor::SetHighlightProperty");
+
this->myHighlightActor->GetProperty()->DeepCopy(Prop);
}
void GEOM_Actor::SetWireframeProperty(vtkProperty* Prop)
{
-#ifdef MYDEBUG
- MESSAGE ( this << " GEOM_Actor::SetWireframeProperty" );
-#endif
+ MESSAGE(this << " GEOM_Actor::SetWireframeProperty");
+
// must be filled
myWireframeFaceActor->SetProperty(Prop);
}
void GEOM_Actor::SetShadingProperty(vtkProperty* Prop)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SetShadingProperty" );
-#endif
+ MESSAGE("GEOM_Actor::SetShadingProperty");
+
myShadingFaceProp->DeepCopy(Prop);
}
void GEOM_Actor::Render(vtkRenderer *ren, vtkMapper *theMapper)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::Render" );
-#endif
+ MESSAGE("GEOM_Actor::Render");
if(!GetVisibility())
return;
void GEOM_Actor::ReleaseGraphicsResources(vtkWindow *)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::ReleaseGraphicsResources" );
-#endif
+ MESSAGE("GEOM_Actor::ReleaseGraphicsResources");
}
-
-
void GEOM_Actor::ShallowCopy(vtkProp *prop)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::ShallowCopy" );
-#endif
+ MESSAGE("GEOM_Actor::ShallowCopy");
+
GEOM_Actor *f = GEOM_Actor::SafeDownCast(prop);
if ( f != NULL )
{
this->SALOME_Actor::ShallowCopy(prop);
}
-const TopoDS_Shape& GEOM_Actor::getTopo() {
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::getTopo" );
-#endif
+const TopoDS_Shape& GEOM_Actor::getTopo()
+{
+ MESSAGE("GEOM_Actor::getTopo");
+
return myShape;
}
void GEOM_Actor::setInputShape(const TopoDS_Shape& /*ashape*/, double /*adef1*/,
int /*imode*/, bool /*isVector*/)
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::setInputShape" );
-#endif
+ MESSAGE("GEOM_Actor::setInputShape");
}
double GEOM_Actor::isVector()
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::isVector" );
-#endif
+ MESSAGE("GEOM_Actor::isVector");
+
return 0;
}
void GEOM_Actor::SubShapeOn()
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SubShapeOn" );
-#endif
+ MESSAGE("GEOM_Actor::SubShapeOn");
}
void GEOM_Actor::SubShapeOff()
{
-#ifdef MYDEBUG
- MESSAGE ( "GEOM_Actor::SubShapeOff" );
-#endif
+ MESSAGE("GEOM_Actor::SubShapeOff");
}
void GEOM_Actor::highlight(bool highlight)
{
-#ifdef MYDEBUG
- MESSAGE ( this << " GEOM_Actor::highlight highlight="<<highlight );
-#endif
+ MESSAGE(this << " GEOM_Actor::highlight highlight=" << highlight);
+
SALOME_Actor::highlight(highlight);
}
::Highlight(bool theIsHighlight)
{
myIsSelected = theIsHighlight;
-#ifdef MYDEBUG
- MESSAGE ( this << " GEOM_Actor::Highlight myIsSelected="<<myIsSelected );
-#endif
+
+ MESSAGE(this << " GEOM_Actor::Highlight myIsSelected=" << myIsSelected);
SALOME_Actor::Highlight(theIsHighlight); // this method call ::highlight(theIsHighlight) in the end
SetVisibility(GetVisibility());
SVTK_SelectionEvent* theSelectionEvent,
bool theIsHighlight)
{
-#ifdef MYDEBUG
- MESSAGE ( this<<" GEOM_Actor::PreHighlight (3) theIsHighlight="<<theIsHighlight );
-#endif
+ MESSAGE(this << " GEOM_Actor::PreHighlight (3) theIsHighlight=" << theIsHighlight);
if ( !GetPickable() )
return false;
bool theIsHighlight)
{
// define the selection of object
-#ifdef MYDEBUG
- MESSAGE ( std::endl << this << " GEOM_Actor::Highlight (3) myIsSelected="<<myIsSelected );
-#endif
+ MESSAGE(std::endl << this << " GEOM_Actor::Highlight (3) myIsSelected=" << myIsSelected);
+
bool aRet = SALOME_Actor::Highlight(theInteractorStyle,theSelectionEvent,theIsHighlight);
SetSelected(theIsHighlight);
if(theIsHighlight)
SetPreSelected(false);
-
return aRet;
}
if (anIndices.IsNull() || aParams.IsNull()) {
if (IsUIso) {
- MESSAGE("GEOMUtils_Hatcher: null U-isoline indices")
+ MESSAGE("GEOMUtils_Hatcher: null U-isoline indices");
} else {
- MESSAGE("GEOMUtils_Hatcher: null V-isoline indices")
+ MESSAGE("GEOMUtils_Hatcher: null V-isoline indices");
}
} else {
const GeomAbs_IsoType aType = (IsUIso ? GeomAbs_IsoU : GeomAbs_IsoV);
if (aNbDomains < 0) {
if (IsUIso) {
- MESSAGE("GEOMUtils_Hatcher: U iso of parameter: "<<aParam)
+ MESSAGE("GEOMUtils_Hatcher: U iso of parameter: "<<aParam);
} else {
- MESSAGE("GEOMUtils_Hatcher: V iso of parameter: "<<aParam)
+ MESSAGE("GEOMUtils_Hatcher: V iso of parameter: "<<aParam);
}
switch (theHatcher.GetHatcher().Status (aHatchingIndex)) {
Computes the lines in the image located at imagePath
*/
bool ShapeRec_FeatureDetector::ComputeLines(){
- MESSAGE("ShapeRec_FeatureDetector::ComputeLines()")
+ MESSAGE("ShapeRec_FeatureDetector::ComputeLines()");
// Initialising images
cv::Mat src, src_gray, detected_edges, dst;