From f5994d17b02f88d6ecd1c77e59335c8219c58b6f Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 24 Nov 2006 06:42:39 +0000 Subject: [PATCH] Minor changes --- src/VISU_I/VISU_ColoredPrs3dHolder_i.cc | 3 +-- src/VISU_I/VISU_Prs3d_i.cc | 28 +++++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc b/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc index 1bb4f028..e8cd3cfc 100644 --- a/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dHolder_i.cc @@ -85,11 +85,10 @@ VISU::ColoredPrs3dHolder_i default: break; } - QString aComment; SetName(GenerateName().latin1()); CORBA::String_var anIOR = GetID(); std::string aFatherEntry = theCache.GetEntry(); - aComment = QString("myComment=") + aType; + QString aComment = QString("myComment=") + aType; CreateAttributes(GetStudyDocument(), aFatherEntry, "", anIOR.in(), GetName(), "", aComment, true); } diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 8eef43a2..cea37532 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -230,6 +230,7 @@ VISU::Prs3d_i return this; } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::ToStream(std::ostringstream& theStr) @@ -305,6 +306,7 @@ VISU::Prs3d_i } +//---------------------------------------------------------------------------- struct TRemoveFromStudy: public SALOME_Event { VISU::Prs3d_i* myRemovable; @@ -326,6 +328,7 @@ struct TRemoveFromStudy: public SALOME_Event } }; +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::RemoveFromStudy() @@ -345,6 +348,7 @@ VISU::Prs3d_i return myPipeLine; } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::SetPipeLine(VISU_PipeLine* thePipeLine) @@ -352,12 +356,15 @@ VISU::Prs3d_i myPipeLine = thePipeLine; } +//---------------------------------------------------------------------------- bool VISU::Prs3d_i ::IsPipeLineExists() { return myPipeLine != NULL; } + +//---------------------------------------------------------------------------- VISU_PipeLine* VISU::Prs3d_i ::GetPL() @@ -365,16 +372,18 @@ VISU::Prs3d_i return GetPipeLine(); } +//---------------------------------------------------------------------------- vtkUnstructuredGrid* -VISU::Prs3d_i:: -GetInput() +VISU::Prs3d_i +::GetInput() { return GetPipeLine()->GetInput(); } +//---------------------------------------------------------------------------- Handle(SALOME_InteractiveObject) -VISU::Prs3d_i:: -GetIO() +VISU::Prs3d_i +::GetIO() { if( myIO.IsNull() ) myIO = new SALOME_InteractiveObject(GetEntry().c_str(), "VISU", GetName().c_str()); @@ -419,6 +428,7 @@ VISU::Prs3d_i } } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::RemoveActor(VISU_Actor* theActor) @@ -427,6 +437,7 @@ VISU::Prs3d_i myActorCollection->RemoveItem(theActor); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::RemoveActors() @@ -436,6 +447,7 @@ VISU::Prs3d_i myActorCollection->RemoveAllItems(); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::UpdateActor(VISU_Actor* theActor) @@ -465,6 +477,7 @@ VISU::Prs3d_i GetPipeLine()->RemoveAllClippingPlanes(); } +//---------------------------------------------------------------------------- bool VISU::Prs3d_i ::AddClippingPlane(vtkPlane* thePlane) @@ -472,6 +485,7 @@ VISU::Prs3d_i return GetPipeLine()->AddClippingPlane(thePlane); } +//---------------------------------------------------------------------------- vtkIdType VISU::Prs3d_i ::GetNumberOfClippingPlanes() const @@ -479,6 +493,7 @@ VISU::Prs3d_i return GetPipeLine()->GetNumberOfClippingPlanes(); } +//---------------------------------------------------------------------------- vtkPlane* VISU::Prs3d_i:: GetClippingPlane(vtkIdType theID) const @@ -486,6 +501,7 @@ GetClippingPlane(vtkIdType theID) const return GetPipeLine()->GetClippingPlane(theID); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::SetPlaneParam(vtkFloatingPointType theDir[3], @@ -504,6 +520,7 @@ VISU::Prs3d_i GetPipeLine()->GetMapper()->GetBounds(aBounds); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::SetOffset(const CORBA::Float* theOffsets) @@ -514,6 +531,7 @@ VISU::Prs3d_i myParamsTime.Modified(); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::SetOffset(CORBA::Float theDx, @@ -526,6 +544,7 @@ VISU::Prs3d_i myParamsTime.Modified(); } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::GetOffset(CORBA::Float* theOffsets) @@ -535,6 +554,7 @@ VISU::Prs3d_i theOffsets[2] = myOffset[2]; } +//---------------------------------------------------------------------------- void VISU::Prs3d_i ::GetOffset(CORBA::Float& theDx, -- 2.39.2