Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
c5721c306This file is pinned to the selected release. Download the original to open it in your design tool.
// Solid.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "Shape.h"
class CSolid:public CShape{
protected:
// CShape's virtual functions
void MakeTransformedShape(const gp_Trsf &mat);
public:
//SolidTypeEnum m_type; // so the solid can be stretched in specific ways, if it's still a primitive solid
static int m_type;
CSolid(const TopoDS_Solid &solid, const wchar_t* title, const HeeksColor& col, float opacity);
CSolid( const CSolid & rhs );
CSolid(){}
~CSolid();
virtual const CSolid& operator=(const CSolid& s){ CShape::operator =(s); return *this;}
int GetType()const{return m_type;}
int GetIDGroupType()const{ return StlSolidType; }
// long GetMarkingMask()const{return MARKING_FILTER_SOLID;}
const wchar_t* GetTypeString(void)const{return L"Solid";}
const wchar_t* GetIconFilePath();
HeeksObj *MakeACopy(void)const;
void SetColor(const HeeksColor &col);
const HeeksColor* GetColor()const;
// CShape's virtual functions
void SetXMLElement(TiXmlElement* element);
void SetFromXMLElement(TiXmlElement* pElem);
void OnApplyPropertiesRaw();
virtual SolidTypeEnum GetSolidType(){return SOLID_TYPE_UNKNOWN;}
};