1 #include <HYDROData_VisualState.h>
3 #include <TDataStd_AsciiString.hxx>
5 IMPLEMENT_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Object)
6 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_VisualState, HYDROData_Object)
8 HYDROData_VisualState::HYDROData_VisualState()
12 HYDROData_VisualState::~HYDROData_VisualState()
16 void HYDROData_VisualState::SetState( const QString& theState )
18 TCollection_AsciiString aString;
19 Handle(TDataStd_AsciiString) aState;
20 if( !myLab.FindAttribute( TDataStd_AsciiString::GetID(), aState ) )
21 aState = TDataStd_AsciiString::Set( myLab, aString );
22 aString.AssignCat( theState.toLatin1().constData() );
23 aState->Set( aString );
26 QString HYDROData_VisualState::GetState() const
28 Handle(TDataStd_AsciiString) aState;
29 if( !myLab.FindAttribute( TDataStd_AsciiString::GetID(), aState ) )
31 return QString( aState->Get().ToCString() );