Integration of OCCT 6.5.0 from SVN
[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
18         void Display( Handle(AIS_InteractiveContext)& anAIScontext);
19
20         TopoDS_ListOfShape getShapes();
21         Quantity_NameOfColor getShapeColor(TopoDS_Shape aShape);
22
23 protected:
24         // Declare CArchive >> operator
25         DECLARE_SERIAL(CColoredShapes);
26
27         // mute CObject::Serialize
28         void Serialize(CArchive& ar);
29
30 private:
31         TopTools_DataMapOfShapeInteger m_colorMap;
32         TopoDS_ListOfShape   m_shapeList;
33 };
34
35 #endif // !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)