#include <vtkStreamLine.h>
#ifdef _DEBUG_
-static int MYDEBUG = 1;
+static int MYDEBUG = 0;
#else
static int MYDEBUG = 0;
#endif
case VISU::TSCALARMAP:
{
VISU::ScalarMap_i* aScalarPrs = dynamic_cast<VISU::ScalarMap_i*>(aPrsObject);
- VISU::ScalarMap_i* aSameScalar = new VISU::ScalarMap_i(aScalarPrs->GetResult());
+ VISU::ScalarMap_i* aSameScalar = new VISU::ScalarMap_i(aScalarPrs->GetResult(),true);
aSameScalar->SameAs(aScalarPrs);
UpdateViewer(aSameScalar);
}
case VISU::TDEFORMEDSHAPE:
{
VISU::DeformedShape_i* aDefPrs = dynamic_cast<VISU::DeformedShape_i*>(aPrsObject);
- VISU::DeformedShape_i* aSameDeformed = new VISU::DeformedShape_i(aDefPrs->GetResult());
+ VISU::DeformedShape_i* aSameDeformed = new VISU::DeformedShape_i(aDefPrs->GetResult(),true);
aSameDeformed->SameAs(aDefPrs);
UpdateViewer(aSameDeformed);
}
case VISU::TCUTPLANES:
{
VISU::CutPlanes_i* aCutPrs = dynamic_cast<VISU::CutPlanes_i*>(aPrsObject);
- VISU::CutPlanes_i* aSameCut = new VISU::CutPlanes_i(aCutPrs->GetResult());
+ VISU::CutPlanes_i* aSameCut = new VISU::CutPlanes_i(aCutPrs->GetResult(),true);
aSameCut->SameAs(aCutPrs);
UpdateViewer(aSameCut);
}
case VISU::TCUTLINES:
{
VISU::CutLines_i* aCutPrs = dynamic_cast<VISU::CutLines_i*>(aPrsObject);
- VISU::CutLines_i* aSameCut = new VISU::CutLines_i(aCutPrs->GetResult());
+ VISU::CutLines_i* aSameCut = new VISU::CutLines_i(aCutPrs->GetResult(),true);
aSameCut->SameAs(aCutPrs);
UpdateViewer(aSameCut);
}
case VISU::TISOSURFACE:
{
VISU::IsoSurfaces_i* aIsoPrs = dynamic_cast<VISU::IsoSurfaces_i*>(aPrsObject);
- VISU::IsoSurfaces_i* aSameIso = new VISU::IsoSurfaces_i(aIsoPrs->GetResult());
+ VISU::IsoSurfaces_i* aSameIso = new VISU::IsoSurfaces_i(aIsoPrs->GetResult(),true);
aSameIso->SameAs(aIsoPrs);
UpdateViewer(aSameIso);
}
case VISU::TSTREAMLINES:
{
VISU::StreamLines_i* aLinesPrs = dynamic_cast<VISU::StreamLines_i*>(aPrsObject);
- VISU::StreamLines_i* aSameLines = new VISU::StreamLines_i(aLinesPrs->GetResult());
+ VISU::StreamLines_i* aSameLines = new VISU::StreamLines_i(aLinesPrs->GetResult(),true);
aSameLines->SameAs(aLinesPrs);
UpdateViewer(aSameLines);
}
case VISU::TVECTORS:
{
VISU::Vectors_i* aVectorsPrs = dynamic_cast<VISU::Vectors_i*>(aPrsObject);
- VISU::Vectors_i* aSameVectors = new VISU::Vectors_i(aVectorsPrs->GetResult());
+ VISU::Vectors_i* aSameVectors = new VISU::Vectors_i(aVectorsPrs->GetResult(),true);
aSameVectors->SameAs(aVectorsPrs);
UpdateViewer(aSameVectors);
}
const char* VISU::CutLines_i::GetComment() const { return myComment.c_str();}
-VISU::CutLines_i::CutLines_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::CutLines_i::
+CutLines_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ myCutLinesPL(NULL)
{
- myCutLinesPL = NULL;
}
+VISU::CutLines_i::
+CutLines_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ myCutLinesPL(NULL)
+{
+}
+
void VISU::CutLines_i::SameAs(const CutLines_i* theOrigin){
VISU::ScalarMap_i::SameAs(theOrigin);
CutLines_i();
CutLines_i(const CutLines_i&);
public:
- CutLines_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ CutLines_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ CutLines_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const CutLines_i* theOrigin);
virtual ~CutLines_i();
const char* VISU::CutPlanes_i::GetComment() const { return myComment.c_str();}
-VISU::CutPlanes_i::CutPlanes_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ myCutPlanesPL(NULL)
+{
+}
+
+
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ myCutPlanesPL(NULL)
{
- myCutPlanesPL = NULL;
}
CutPlanes_i();
CutPlanes_i(const CutPlanes_i&);
public:
- CutPlanes_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ CutPlanes_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ CutPlanes_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const CutPlanes_i* theOrigin);
virtual ~CutPlanes_i();
const char* VISU::DeformedShape_i::GetComment() const { return myComment.c_str();}
-VISU::DeformedShape_i::DeformedShape_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::DeformedShape_i::
+DeformedShape_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ myDeformedShapePL(NULL)
{
if(MYDEBUG) MESSAGE("DeformedShape_i::DeformedShape_i");
- myDeformedShapePL = NULL;
}
+VISU::DeformedShape_i::
+DeformedShape_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ myDeformedShapePL(NULL)
+{
+ if(MYDEBUG) MESSAGE("DeformedShape_i::DeformedShape_i");
+}
+
void VISU::DeformedShape_i::SameAs(const DeformedShape_i* theOrigin)
{
DeformedShape_i();
DeformedShape_i(const DeformedShape_i&);
public:
- DeformedShape_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ DeformedShape_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ DeformedShape_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const DeformedShape_i* theOrigin);
virtual ~DeformedShape_i();
const char* VISU::IsoSurfaces_i::GetComment() const { return myComment.c_str();}
-VISU::IsoSurfaces_i::IsoSurfaces_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::IsoSurfaces_i::
+IsoSurfaces_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ myIsoSurfacesPL(NULL)
{
- myIsoSurfacesPL = NULL;
}
+VISU::IsoSurfaces_i::
+IsoSurfaces_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ myIsoSurfacesPL(NULL)
+{
+}
+
void VISU::IsoSurfaces_i::SameAs(const IsoSurfaces_i* theOrigin) {
VISU::ScalarMap_i::SameAs(theOrigin);
IsoSurfaces_i();
IsoSurfaces_i(const IsoSurfaces_i&);
public:
- IsoSurfaces_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ IsoSurfaces_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ IsoSurfaces_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const IsoSurfaces_i* theOrigin);
virtual ~IsoSurfaces_i();
const char* VISU::Mesh_i::GetComment() const { return myComment.c_str();}
-VISU::Mesh_i::Mesh_i(Result_i* theResult, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject)
+VISU::Mesh_i::
+Mesh_i(Result_i* theResult) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,false),
+ myMeshPL(VISU_MeshPL::New())
{
- myPipeLine = myMeshPL = VISU_MeshPL::New();;
+ myPipeLine = myMeshPL;
+}
+
+
+VISU::Mesh_i::
+Mesh_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ myMeshPL(VISU_MeshPL::New())
+{
+ myPipeLine = myMeshPL;
}
Mesh_i();
Mesh_i(const Mesh_i&);
public:
- Mesh_i(Result_i* theResult, SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ Mesh_i(Result_i* theResult);
+ explicit
+ Mesh_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const Mesh_i* theOrigin);
virtual ~Mesh_i();
virtual void RemoveFromStudy();
static int MYDEBUG = 0;
#endif
-VISU::Prs3d_i::Prs3d_i(Result_i* theResult, SALOMEDS::SObject_ptr theSObject) :
+VISU::Prs3d_i::
+Prs3d_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
PrsObject_i(theResult->GetStudyDocument()),
- myResult(theResult)
+ myResult(theResult),
+ mySObject(SALOMEDS::SObject::_duplicate(theSObject)),
+ myAddToStudy(true),
+ myPipeLine(NULL)
+{
+ myResult->Register();
+}
+
+VISU::Prs3d_i::
+Prs3d_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ myResult(theResult),
+ mySObject(SALOMEDS::SObject::_nil()),
+ myAddToStudy(theAddToStudy),
+ myPipeLine(NULL)
{
myResult->Register();
- mySObject = SALOMEDS::SObject::_duplicate(theSObject);
- myAddToStudy = true;
- myPipeLine = NULL;
- CORBA::String_var aName = myStudy->Name();
- if(MYDEBUG) MESSAGE("Prs3d_i - this = "<<this<<"; StudyId = "<<myStudy->StudyId()<<"; Name = '"<<aName.in()<<"'");
}
void VISU::Prs3d_i::SameAs(const Prs3d_i* theOrigin)
Prs3d_i(const Prs3d_i&);
public:
- Prs3d_i(Result_i* theResult, SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ Prs3d_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ Prs3d_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const Prs3d_i* theOrigin);
virtual ~Prs3d_i();
virtual void RemoveFromStudy() = 0;
const string VISU::ScalarMap_i::myComment = "SCALARMAP";
const char* VISU::ScalarMap_i::GetComment() const { return myComment.c_str();}
-VISU::ScalarMap_i::ScalarMap_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject)
+VISU::ScalarMap_i::
+ScalarMap_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ myScalarMapPL(NULL)
+{
+}
+
+
+VISU::ScalarMap_i::
+ScalarMap_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ myScalarMapPL(NULL)
{
- myAddToStudy = theAddToStudy;
- myScalarMapPL = NULL;
}
ScalarMap_i(const ScalarMap_i&);
public:
- ScalarMap_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ ScalarMap_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ ScalarMap_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const ScalarMap_i* theOrigin);
virtual ~ScalarMap_i();
virtual void RemoveFromStudy();
const char* VISU::StreamLines_i::GetComment() const { return myComment.c_str();}
-VISU::StreamLines_i::StreamLines_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject),
- DeformedShape_i(theResult,theAddToStudy,theSObject)
+VISU::StreamLines_i::
+StreamLines_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ DeformedShape_i(theResult,theAddToStudy),
+ myStreamLinesPL(NULL),
+ myAppendFilter(vtkAppendFilter::New())
{
- myStreamLinesPL = NULL;
- myAppendFilter = vtkAppendFilter::New();
}
+
+VISU::StreamLines_i::
+StreamLines_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ DeformedShape_i(theResult,theSObject),
+ myStreamLinesPL(NULL),
+ myAppendFilter(vtkAppendFilter::New())
+{
+}
+
+
void VISU::StreamLines_i::SameAs(const StreamLines_i* theOrigin) {
StreamLines_i* aStreamLines = const_cast<StreamLines_i*>(theOrigin);
VISU::DeformedShape_i::SameAs(theOrigin);
StreamLines_i();
StreamLines_i(const StreamLines_i&);
public:
- StreamLines_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ StreamLines_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ StreamLines_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const StreamLines_i* theOriginal);
virtual ~StreamLines_i();
const char* VISU::Vectors_i::GetComment() const { return myComment.c_str();}
-VISU::Vectors_i::Vectors_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
- PrsObject_i(theResult->GetStudyDocument()),
- Prs3d_i(theResult,theSObject),
- ScalarMap_i(theResult,theAddToStudy,theSObject),
- DeformedShape_i(theResult,theAddToStudy,theSObject)
+VISU::Vectors_i::
+Vectors_i(Result_i* theResult,
+ bool theAddToStudy) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theAddToStudy),
+ ScalarMap_i(theResult,theAddToStudy),
+ DeformedShape_i(theResult,theAddToStudy),
+ myVectorsPL(NULL)
+{
+}
+
+
+VISU::Vectors_i::
+Vectors_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject) :
+ PrsObject_i(theResult->GetStudyDocument()),
+ Prs3d_i(theResult,theSObject),
+ ScalarMap_i(theResult,theSObject),
+ DeformedShape_i(theResult,theSObject),
+ myVectorsPL(NULL)
{
- myVectorsPL = NULL;
}
Vectors_i();
Vectors_i(const Vectors_i&);
public:
- Vectors_i(Result_i* theResult, bool theAddToStudy = true,
- SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+ explicit
+ Vectors_i(Result_i* theResult,
+ bool theAddToStudy);
+ explicit
+ Vectors_i(Result_i* theResult,
+ SALOMEDS::SObject_ptr theSObject);
virtual void SameAs(const Vectors_i* theOrigin);
virtual ~Vectors_i();