From: dmv Date: Thu, 10 Apr 2008 11:58:24 +0000 (+0000) Subject: NPAL13444 Compilation error fix X-Git-Tag: V4_1_2rc1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f198e7f7ef62a1eaa725b5f5ff9edc130eb24cfd;p=modules%2Fvisu.git NPAL13444 Compilation error fix --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 5a3eb8a2..7b1fd68e 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -39,6 +39,7 @@ #include "VISU_StreamLines_i.hh" #include "VISU_Plot3D_i.hh" #include "VISU_Table_i.hh" +#include "VISU_PointMap3d_i.hh" #include "VISU_GaussPoints_i.hh" #include "VISU_ScalarMapOnDeformedShape_i.hh" #include "VISU_ColoredPrs3dCache_i.hh" @@ -731,7 +732,6 @@ namespace VISU return thePrefix; } - //--------------------------------------------------------------------------- // declaration void DumpChildrenToPython(SALOMEDS::Study_ptr theStudy, @@ -1285,6 +1285,78 @@ namespace VISU theStr<(GetServant(anObj).in())) { + CORBA::Short aTag = theSObject->Tag(); + theStr<GetScaleFactor()<<")"<GetIsContourPrs()<<")"<GetNbOfContours()<<")"<GetScaling()){ + case LINEAR: + aParam = "VISU.LINEAR"; + break; + case LOGARITHMIC: + aParam = "VISU.LOGARITHMIC"; + break; + } + theStr<GetNbColors()<<")"<GetLabels()<<")"<GetBarOrientation()){ + case ColoredPrs3dBase::HORIZONTAL: + aParam = "VISU.ColoredPrs3d.HORIZONTAL"; + break; + case ColoredPrs3dBase::VERTICAL: + aParam = "VISU.ColoredPrs3d.VERTICAL"; + break; + } + theStr<IsRangeFixed()) + theStr<GetMin()<<", "<GetMax()<<")"<GetPosX()<<", "<GetPosY()<<")"<GetWidth()<<", "<GetHeight()<<")"<GetOffset(dx, dy, dz); + theStr<(GetServant(anObj).in())){ TCreateFromResult aPrsFactory(theSObject, aServant, aName, "GaussPointsOnField", theArgumentName); diff --git a/src/VISU_I/VISU_PointMap3d_i.cc b/src/VISU_I/VISU_PointMap3d_i.cc index a6cf7b63..08a63604 100644 --- a/src/VISU_I/VISU_PointMap3d_i.cc +++ b/src/VISU_I/VISU_PointMap3d_i.cc @@ -50,9 +50,9 @@ #include #ifdef _DEBUG_ -static int MYDEBUG = 0; +static int MYDEBUG = 1; #else -static int MYDEBUG = 0; +static int MYDEBUG = 1; #endif //---------------------------------------------------------------- @@ -82,7 +82,7 @@ VISU::PointMap3d_i::PointMap3d_i( SALOMEDS::Study_ptr theStudy, const char* theO myActorCollection(vtkActorCollection::New()), myIsActiveState(true) { - MESSAGE("PointMap3d_i::PointMap3d_i - "<> unexpected exception was caught!!!"); + } +} + +//---------------------------------------------------------------------------- +unsigned long int +VISU::PointMap3d_i +::GetMTime() +{ + unsigned long int aTime = myParamsTime.GetMTime(); + if( GetSpecificPL() ) + aTime = std::max(aTime, GetSpecificPL()->GetMTime()); + return aTime; +} + /*! Builds presentation of table */ @@ -873,14 +906,6 @@ void VISU::PointMap3d_i::SetActiveState ( bool theState ) myIsActiveState = theState; } -unsigned long int VISU::PointMap3d_i::GetMTime () -{ - unsigned long int aTime = myParamsTime.GetMTime(); - if( GetSpecificPL() ) - aTime = std::max(aTime, GetSpecificPL()->GetMTime()); - return aTime; -} - void VISU::PointMap3d_i::RemoveActor (VISU_ActorBase* theActor) { myActorCollection->RemoveItem(theActor); diff --git a/src/VISU_I/VISU_PointMap3d_i.hh b/src/VISU_I/VISU_PointMap3d_i.hh index f3772b92..99f55d2b 100644 --- a/src/VISU_I/VISU_PointMap3d_i.hh +++ b/src/VISU_I/VISU_PointMap3d_i.hh @@ -67,6 +67,8 @@ namespace VISU virtual void UpdateActor(VISU_ActorBase* thePointMap3dActor); virtual void UpdateActors(); + virtual void Update(); + //----------- override Prs3d methods ----------------------------- //! Move the 3D presentation according to the given offset parameters @@ -125,13 +127,13 @@ namespace VISU // Plot3dBase methods void SetScaleFactor (CORBA::Double theScaleFactor); - double GetScaleFactor(); + CORBA::Double GetScaleFactor(); void SetContourPrs (CORBA::Boolean theIsContourPrs ); - bool GetIsContourPrs(); + CORBA::Boolean GetIsContourPrs(); void SetNbOfContours (CORBA::Long); - long GetNbOfContours(); + CORBA::Long GetNbOfContours(); VISU_DeformedGridPL* GetSpecificPL() const { return myTablePL; } @@ -214,6 +216,7 @@ namespace VISU CORBA::Float myOffset[3]; bool myIsActiveState; vtkTimeStamp myParamsTime; + vtkTimeStamp myUpdateTime; //Font management diff --git a/src/VISU_I/VISU_Table_i.cc b/src/VISU_I/VISU_Table_i.cc index 4ece6b61..74bdb5af 100644 --- a/src/VISU_I/VISU_Table_i.cc +++ b/src/VISU_I/VISU_Table_i.cc @@ -37,9 +37,9 @@ #include "VISU_ConvertorUtils.hxx" #ifdef _DEBUG_ -static int MYDEBUG = 0; +static int MYDEBUG = 1; #else -static int MYDEBUG = 0; +static int MYDEBUG = 1; #endif //---------------------------------------------------------------- // Table Object @@ -66,6 +66,7 @@ const char* VISU::Table_i::GetComment() const VISU::Table_i::Table_i( SALOMEDS::Study_ptr theStudy, const char* theObjectEntry ) : PrsObject_i(theStudy) { + MESSAGE("Table_i::Table_i - "<FindObjectID(theObjectEntry); myOrientation = VISU::Table::HORIZONTAL; } @@ -74,7 +75,7 @@ VISU::Table_i::Table_i( SALOMEDS::Study_ptr theStudy, const char* theObjectEntry */ VISU::Table_i::~Table_i() { - MESSAGE("Table_i::~Table_i"); + MESSAGE("Table_i::~Table_i - "<