7fd59977 |
1 | // ColoredShape.h: interface for the CColoredShape class. |
2 | // |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #if !defined(AFX_COLOREDSHAPE_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_) |
6 | #define AFX_COLOREDSHAPE_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_ |
7 | |
8 | #if _MSC_VER >= 1000 |
9 | #pragma once |
10 | #endif // _MSC_VER >= 1000 |
11 | |
12 | class CColoredShape : public CObject |
13 | { |
14 | public: |
15 | CColoredShape( const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape); |
16 | |
17 | void Display( Handle(AIS_InteractiveContext)& anAIScontext); |
18 | |
19 | // fields |
20 | Quantity_NameOfColor m_colorName; |
21 | TopoDS_Shape m_shapeObject; |
22 | |
23 | protected: |
24 | CColoredShape(); |
25 | |
26 | // Declare CArchive >> operator |
27 | DECLARE_SERIAL(CColoredShape); |
28 | |
29 | // mute CObject::Serialize |
30 | void Serialize(CArchive& ar); |
31 | |
32 | }; |
33 | |
34 | #endif // !defined(AFX_COLOREDSHAPE_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_) |