0024927: Getting rid of "Persistent" functionality -- Samples and data
[occt.git] / samples / mfc / standard / 05_ImportExport / src / ColoredShapes.h
1 // ColoredShape.h: interface for the CColoredShape class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)
6 #define AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_
7
8 #if _MSC_VER >= 1000
9 #pragma once
10 #endif // _MSC_VER >= 1000
11
12 class CColoredShapes : public CObject  
13 {
14 public:
15         CColoredShapes();
16         void Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape);
17         void Remove(const TopoDS_Shape& aShape);
18
19         void Display( Handle(AIS_InteractiveContext)& anAIScontext);
20
21         TopoDS_ListOfShape getShapes();
22         Quantity_NameOfColor getShapeColor(TopoDS_Shape aShape);
23
24 protected:
25         // Declare CArchive >> operator
26         DECLARE_SERIAL(CColoredShapes);
27
28 private:
29         TopTools_DataMapOfShapeInteger m_colorMap;
30         TopoDS_ListOfShape   m_shapeList;
31 };
32
33 #endif // !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)