// HYDROData_Object sub-classes provide a unique kind ID.
switch ( sipCpp->GetKind() )
{
+ case KIND_IMAGE:
+ sipClass = sipClass_HYDROData_Image;
+ break;
+
+ case KIND_POLYLINE:
+ sipClass = sipClass_HYDROData_Polyline;
+ break;
+
case KIND_BATHYMETRY:
sipClass = sipClass_HYDROData_Bathymetry;
break;
}
%End
-public:
- /**
- * Visual state data.
- */
- struct VisualState
- {
- bool Visibility;
- double Transparency;
- double ZValue;
-
- VisualState();
- };
-
- typedef QMap < int, HYDROData_Object::VisualState > ViewId2VisualStateMap;
- typedef QMapIterator< int, HYDROData_Object::VisualState > ViewId2VisualStateMapIterator;
-
public:
/**
* Returns the kind of this object. Must be redefined in all objects of known type.
*/
- //virtual const ObjectKind GetKind() const {return KIND_UNKNOWN;}
+ const ObjectKind GetKind() const;
/**
* Returns the name of this object.
*/
void SetName(const QString& theName);
- /**
- * Returns the object visibility state for the view with specified id.
- * \param theViewId view id
- * \returns visibility state
- */
- bool IsVisible( const int theViewId ) const;
-
- /**
- * Sets the object visibility state for the view with specified id.
- * \param theViewId view id
- * \param theVal visibility state
- */
- void SetVisible( const int theViewId,
- const bool theVal );
-
/**
* Checks is object exists in the data structure.
* \returns true is object is not exists in the data model
protected:
- //friend class HYDROData_Iterator;
-
/**
* Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.