Small update
[occt.git] / samples / mfc / standard / 05_ImportExport / src / ColoredShapes.h
CommitLineData
7fd59977 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
12class CColoredShapes : public CObject
13{
14public:
15 CColoredShapes();
16 void Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape);
b96f3bea 17 void Remove(const TopoDS_Shape& aShape);
7fd59977 18
19 void Display( Handle(AIS_InteractiveContext)& anAIScontext);
20
21 TopoDS_ListOfShape getShapes();
22 Quantity_NameOfColor getShapeColor(TopoDS_Shape aShape);
23
24protected:
25 // Declare CArchive >> operator
26 DECLARE_SERIAL(CColoredShapes);
27
28 // mute CObject::Serialize
29 void Serialize(CArchive& ar);
30
31private:
32 TopTools_DataMapOfShapeInteger m_colorMap;
33 TopoDS_ListOfShape m_shapeList;
34};
35
36#endif // !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)