ColoredPrs3d_i(EPublishInStudyMode thePublishInStudyMode) :
myPublishInStudyMode(thePublishInStudyMode),
myIsTimeStampFixed(thePublishInStudyMode == EPublishUnderTimeStamp),
+ myEntity( VISU::Entity( -1 ) ),
+ myPreviousEntity( VISU::Entity( -1 ) ),
+ myTimeStampNumber( -1 ),
+ myPreviousTimeStampNumber( -1 ),
+ myIsUnits( true ),
+ myOrientation( VISU::ColoredPrs3dBase::HORIZONTAL ),
myColoredPL(NULL),
myIsFixedRange(false),
myIsRestored(true)
VISU::ColoredPrs3d_i
::SetEntity(VISU::Entity theEntity)
{
- if(myEntity == theEntity)
+ if ( myEntity == theEntity )
return;
VISU::TSetModified aModified(this);
VISU::ColoredPrs3d_i
::SetTimeStampNumber(CORBA::Long theTimeStampNumber)
{
- if(myTimeStampNumber == theTimeStampNumber)
+ if ( myTimeStampNumber == theTimeStampNumber )
return;
VISU::TSetModified aModified(this);
VISU::ColoredPrs3d_i
::SetBarOrientation(VISU::ColoredPrs3dBase::Orientation theOrientation)
{
- if(myOrientation == theOrientation)
+ if ( myOrientation == theOrientation )
return;
VISU::TSetModified aModified(this);
//----------------------------------------------------------------------------
void
VISU::ColoredPrs3d_i
-::SetUnitsVisible(CORBA::Boolean isVisible)
+::SetUnitsVisible(CORBA::Boolean theIsVisible)
{
- if( myIsUnits != isVisible ){
- VISU::TSetModified aModified(this);
- myIsUnits = isVisible;
- myParamsTime.Modified();
- }
+ if ( myIsUnits == theIsVisible )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myIsUnits = theIsVisible;
+ myParamsTime.Modified();
}
//----------------------------------------------------------------------------
CutLines_i(EPublishInStudyMode thePublishInStudyMode) :
ColoredPrs3d_i(thePublishInStudyMode),
ScalarMap_i(thePublishInStudyMode),
+ myUseAbsLength( false ),
myCutLinesPL(NULL)
{}
VISU::CutLines_i
::SetUseAbsoluteLength(CORBA::Boolean theAbsLength)
{
- if(myUseAbsLength == theAbsLength)
+ if ( myUseAbsLength == theAbsLength )
return;
VISU::TSetModified aModified(this);