#include "HYDROGUI.h"
#include "HYDROGUI_DataModel.h"
+#include "HYDROGUI_DataObject.h"
#include "HYDROGUI_Displayer.h"
#include "HYDROGUI_GVSelector.h"
#include "HYDROGUI_InputPanel.h"
if( theObject.IsNull() )
return false;
- ViewId2Name2ObjectStateMap::const_iterator anIter1 = myObjectStateMap.find( theViewId );
+ ViewId2Entry2ObjectStateMap::const_iterator anIter1 = myObjectStateMap.find( theViewId );
if( anIter1 != myObjectStateMap.end() )
{
- const Name2ObjectStateMap& aName2ObjectStateMap = anIter1.value();
- Name2ObjectStateMap::const_iterator anIter2 = aName2ObjectStateMap.find( theObject->GetName());
- if( anIter2 != aName2ObjectStateMap.end() )
+ const Entry2ObjectStateMap& aEntry2ObjectStateMap = anIter1.value();
+ QString anEntry = HYDROGUI_DataObject::dataObjectEntry( theObject );
+
+ Entry2ObjectStateMap::const_iterator anIter2 = aEntry2ObjectStateMap.find( anEntry );
+ if( anIter2 != aEntry2ObjectStateMap.end() )
{
const ObjectState& anObjectState = anIter2.value();
return anObjectState.Visibility;
{
if( !theObject.IsNull() )
{
- Name2ObjectStateMap& aName2ObjectStateMap = myObjectStateMap[ theViewId ];
- ObjectState& anObjectState = aName2ObjectStateMap[ theObject->GetName() ];
+ Entry2ObjectStateMap& aEntry2ObjectStateMap = myObjectStateMap[ theViewId ];
+ QString anEntry = HYDROGUI_DataObject::dataObjectEntry( theObject );
+
+ ObjectState& anObjectState = aEntry2ObjectStateMap[ anEntry ];
anObjectState.Visibility = theState;
}
}
double ZValue;
ObjectState() : Visibility( false ), Transparency( 1.0 ), ZValue( 0.0 ) {}
};
- typedef QMap< QString, ObjectState > Name2ObjectStateMap;
- typedef QMap< int, Name2ObjectStateMap > ViewId2Name2ObjectStateMap;
+ typedef QMap< QString, ObjectState > Entry2ObjectStateMap;
+ typedef QMap< int, Entry2ObjectStateMap > ViewId2Entry2ObjectStateMap;
typedef QList<HYDROGUI_Shape*> ListOfShapes;
typedef QMap<int,ListOfShapes> ViewId2ListOfShapes;
HYDROGUI_VTKPrsDisplayer* myVTKDisplayer;
ViewManagerMap myViewManagerMap;
- ViewId2Name2ObjectStateMap myObjectStateMap;
+ ViewId2Entry2ObjectStateMap myObjectStateMap;
ViewId2ListOfShapes myShapesMap;
ViewId2ListOfVTKPrs myVTKPrsMap;