CFx SDK Documentation  2020SP3
FxBIMMaterial.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FxBIM.h"
4 
5 #include <StringArray.h>
6 #include <DbMaterial.h>
7 
8 class CFxBIMMaterialImpl;
9 
10 class CFxBIMMaterial;
12 
14 {
15  friend class CFxBIMMaterialImpl;
16 public:
18 
19  virtual ~CFxBIMMaterial();
20 
21  virtual bool IsEqual( CFxBIMMaterialPtr p ) const;
22  virtual bool IsSame( CFxBIMMaterialPtr p ) const;
23 
24  virtual OdString Name() const;
25  virtual OdResult SetName( const OdString& name );
26 
27  virtual const OdString& MappedName() const;
28  virtual void SetMappedName( const OdString& mappedName );
29 
30  // HATCH
31 
33 
34  enum class PatternType
35  {
36  eHatch,
37  eCustom
38  };
39 
40  virtual PatternType CutPatternType() const;
42 
43  virtual const OdString& CutPatternName() const;
44  virtual void SetCutPatternName( const OdString& patternName );
45 
46  virtual double CutPatternScale() const;
47  virtual void SetCutPatternScale( double patternScale );
48 
49  virtual bool CutPatternScaleWithViewPort() const;
50  virtual void SetCutPatternScaleWithViewPort( bool ScaleWithViewport );
51 
52  virtual double CutPatternRotation() const;
53  virtual void SetCutPatternRotation( double angle );
54 
56  virtual void SetCutPatternRotationRelativeToElementBaseline( bool RotationRelativeToElementBaseline );
57 
59  virtual void SetCutPatternLineweight( OdDb::LineWeight lineweight );
60 
61  virtual OdCmColor CutPatternColor() const;
62  virtual void SetCutPatternColor( OdCmColor color );
63 
66 
67  virtual const OdString& SurfacePatternName() const;
68  virtual void SetSurfacePatternName( const OdString& patternName );
69 
70  virtual double SurfacePatternScale() const;
71  virtual void SetSurfacePatternScale( double patternScale );
72 
73  virtual bool SurfacePatternScaleWithViewPort() const;
74  virtual void SetSurfacePatternScaleWithViewPort( bool ScaleWithViewport );
75 
76  virtual double SurfacePatternRotation() const;
77  virtual void SetSurfacePatternRotation( double angle );
78 
80  virtual void SetSurfacePatternRotationRelativeToElementBaseline( bool RotationRelativeToElementBaseline );
81 
83  virtual void SetSurfacePatternLineweight( OdDb::LineWeight lineweight );
84 
85  virtual OdCmColor SurfacePatternColor() const;
86  virtual void SetSurfacePatternColor( OdCmColor color );
87 
88  // BOUNDARY
89 
90  virtual bool CutBoundaryUnify() const;
91  virtual void SetCutBoundaryUnify( bool unify );
92 
94  virtual void SetCutBoundaryLineweight( OdDb::LineWeight lineweight );
95 
96  virtual OdCmColor CutBoundaryColor() const;
97  virtual void SetCutBoundaryColor( OdCmColor color );
98 
99  virtual bool SurfaceBoundaryUnify() const;
100  virtual void SetSurfaceBoundaryUnify( bool unify );
101 
103  virtual void SetSurfaceBoundaryLineweight( OdDb::LineWeight lineweight );
104 
106  virtual void SetSurfaceBoundaryColor( OdCmColor color );
107 
108  // SHADING
109 
110  virtual OdCmColor CutColor() const;
111  virtual void SetCutColor( OdCmColor color );
112 
113  virtual double CutTransparency() const;
114  virtual void SetCutTransparency( double transparencyPercentage );
115 
116  virtual OdCmColor SurfaceColor() const;
117  virtual void SetSurfaceColor( OdCmColor color );
118 
119  virtual double SurfaceTransparency() const;
120  virtual void SetSurfaceTransparency( double transparencyPercentage );
121 
122 public:
123  OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
124  void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
125 
126  OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
127  void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
128 
129  void copyFrom( const OdRxObject* pSource ) override;
130 
131 protected:
133 };
134 
135 //-------------------------------------------------------------------------------------------------------------------------------------------------------------
136 
138 {
139 public:
141 
142  virtual void Appended( CFxBIMMaterial* pM, bool appended, CFxBIMDatabaseReference* pDbRef ) {};
143 };
CFxBIMMaterial::copyFrom
void copyFrom(const OdRxObject *pSource) override
OdResult
OdResult
Definition: OdResult.h:29
CFxBIMMaterial::SetCutPatternRotationRelativeToElementBaseline
virtual void SetCutPatternRotationRelativeToElementBaseline(bool RotationRelativeToElementBaseline)
CFxBIMMaterial::MappedName
virtual const OdString & MappedName() const
OdDb::MeasurementValue
MeasurementValue
Definition: OdaDefs.h:437
CFxBIMMaterial::SurfaceBoundaryColor
virtual OdCmColor SurfaceBoundaryColor() const
OdString
Definition: OdString.h:95
DbMaterial.h
CFxBIMMaterial::CutBoundaryColor
virtual OdCmColor CutBoundaryColor() const
CFxBIMMaterial::SetSurfaceTransparency
virtual void SetSurfaceTransparency(double transparencyPercentage)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
FacetModeler::eCustom
@ eCustom
Definition: FMGeometry.h:65
CFxBIMMaterial::SetSurfaceBoundaryLineweight
virtual void SetSurfaceBoundaryLineweight(OdDb::LineWeight lineweight)
CFxBIMMaterial::SetSurfaceBoundaryUnify
virtual void SetSurfaceBoundaryUnify(bool unify)
CFxBIMMaterial::CutPatternColor
virtual OdCmColor CutPatternColor() const
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
CFxBIMMaterial::SetSurfacePatternName
virtual void SetSurfacePatternName(const OdString &patternName)
StringArray.h
CFxBIMMaterial
Definition: FxBIMMaterial.h:14
OdRxObject
Definition: RxObject.h:564
CFxBIMMaterial::CutPatternRotationRelativeToElementBaseline
virtual bool CutPatternRotationRelativeToElementBaseline() const
CFxBIMMaterial::CutPatternScale
virtual double CutPatternScale() const
CFxBIMMaterial::SetSurfacePatternColor
virtual void SetSurfacePatternColor(OdCmColor color)
CFxBIMMaterial::SurfacePatternScaleWithViewPort
virtual bool SurfacePatternScaleWithViewPort() const
CFxBIMMaterial::SetSurfacePatternType
virtual void SetSurfacePatternType(PatternType type)
OdArray< OdString >
CFxBIMMaterial::SetMappedName
virtual void SetMappedName(const OdString &mappedName)
CFxBIMMaterial::CutColor
virtual OdCmColor CutColor() const
CFxBIMMaterial::SetCutBoundaryLineweight
virtual void SetCutBoundaryLineweight(OdDb::LineWeight lineweight)
FXBIM_API
#define FXBIM_API
Definition: FxBIM.h:4
CFxBIMMaterial::~CFxBIMMaterial
virtual ~CFxBIMMaterial()
CFxBIMMaterial::SetCutPatternType
virtual void SetCutPatternType(PatternType type)
CFxBIMMaterial::CutPatternName
virtual const OdString & CutPatternName() const
CFxBIMMaterial::CutPatternRotation
virtual double CutPatternRotation() const
CFxBIMMaterial::IsSame
virtual bool IsSame(CFxBIMMaterialPtr p) const
CFxBIMMaterial::SetCutPatternRotation
virtual void SetCutPatternRotation(double angle)
CFxBIMMaterial::SurfaceBoundaryUnify
virtual bool SurfaceBoundaryUnify() const
CFxBIMMaterial::SurfacePatternColor
virtual OdCmColor SurfacePatternColor() const
CFxBIMMaterial::dxfOutFields
void dxfOutFields(OdDbDxfFiler *pFiler) const override
CFxBIMMaterial::dxfInFields
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
CFxBIMMaterial::PatternList
static OdStringArray PatternList(OdDb::MeasurementValue measurement)
CFxBIMMaterialReactor::Appended
virtual void Appended(CFxBIMMaterial *pM, bool appended, CFxBIMDatabaseReference *pDbRef)
Definition: FxBIMMaterial.h:142
CFxBIMMaterial::CutBoundaryLineweight
virtual OdDb::LineWeight CutBoundaryLineweight() const
CFxBIMMaterialPtr
OdSmartPtr< CFxBIMMaterial > CFxBIMMaterialPtr
Definition: FxBIMMaterial.h:10
CFxBIMMaterial::CFxBIMMaterial
CFxBIMMaterial()
CFxBIMMaterial::IsEqual
virtual bool IsEqual(CFxBIMMaterialPtr p) const
CFxBIMMaterial::SetSurfacePatternScale
virtual void SetSurfacePatternScale(double patternScale)
OdSmartPtr
Definition: SmartPtr.h:58
CFxBIMObject
Definition: FxBIM.h:131
CFxBIMMaterial::SetCutBoundaryColor
virtual void SetCutBoundaryColor(OdCmColor color)
CFxBIMMaterial::SetSurfacePatternScaleWithViewPort
virtual void SetSurfacePatternScaleWithViewPort(bool ScaleWithViewport)
CFxBIMMaterial::SetCutPatternScaleWithViewPort
virtual void SetCutPatternScaleWithViewPort(bool ScaleWithViewport)
CFxBIMMaterial::SurfacePatternLineweight
virtual OdDb::LineWeight SurfacePatternLineweight() const
CFxBIMMaterial::SurfaceBoundaryLineweight
virtual OdDb::LineWeight SurfaceBoundaryLineweight() const
CFxBIMMaterial::SetSurfacePatternRotationRelativeToElementBaseline
virtual void SetSurfacePatternRotationRelativeToElementBaseline(bool RotationRelativeToElementBaseline)
OdDbDxfFiler
Definition: DbFiler.h:194
CFxBIMMaterial::SurfacePatternName
virtual const OdString & SurfacePatternName() const
CFxBIMMaterial::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(CFxBIMMaterial)
CFxBIMMaterial::SetCutPatternLineweight
virtual void SetCutPatternLineweight(OdDb::LineWeight lineweight)
CFxBIMMaterial::SetCutBoundaryUnify
virtual void SetCutBoundaryUnify(bool unify)
CFxBIMDatabaseReference
Definition: FxBIMDatabaseReference.h:17
CFxBIMMaterial::SetSurfaceBoundaryColor
virtual void SetSurfaceBoundaryColor(OdCmColor color)
CFxBIMMaterial::PatternType
PatternType
Definition: FxBIMMaterial.h:35
CFxBIMMaterial::dwgOutFields
void dwgOutFields(OdDbDwgFiler *pFiler) const override
FxBIM.h
CFxBIMMaterial::SurfacePatternScale
virtual double SurfacePatternScale() const
CFxBIMMaterial::SurfacePatternRotation
virtual double SurfacePatternRotation() const
CFxBIMMaterial::CutPatternLineweight
virtual OdDb::LineWeight CutPatternLineweight() const
CFxBIMMaterial::SurfaceTransparency
virtual double SurfaceTransparency() const
CFxBIMMaterial::SetCutPatternScale
virtual void SetCutPatternScale(double patternScale)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
CFxBIMMaterial::SetSurfaceColor
virtual void SetSurfaceColor(OdCmColor color)
CFxBIMMaterial::CutTransparency
virtual double CutTransparency() const
CFxBIMMaterial::SetCutTransparency
virtual void SetCutTransparency(double transparencyPercentage)
CFxBIMMaterial::CutPatternType
virtual PatternType CutPatternType() const
CFxBIMMaterial::SetName
virtual OdResult SetName(const OdString &name)
CFxBIMMaterial::SetSurfacePatternLineweight
virtual void SetSurfacePatternLineweight(OdDb::LineWeight lineweight)
CFxBIMMaterialReactor
Definition: FxBIMMaterial.h:138
CFxBIMMaterial::SetCutPatternColor
virtual void SetCutPatternColor(OdCmColor color)
CFxBIMMaterial::SetSurfacePatternRotation
virtual void SetSurfacePatternRotation(double angle)
CFxBIMMaterialReactor::~CFxBIMMaterialReactor
virtual ~CFxBIMMaterialReactor()
Definition: FxBIMMaterial.h:140
CFxBIMMaterial::CutPatternScaleWithViewPort
virtual bool CutPatternScaleWithViewPort() const
CFxBIMMaterial::dwgInFields
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
CFxBIMMaterial::SurfacePatternRotationRelativeToElementBaseline
virtual bool SurfacePatternRotationRelativeToElementBaseline() const
CFxBIMMaterial::SurfaceColor
virtual OdCmColor SurfaceColor() const
CFxBIMMaterial::SurfacePatternType
virtual PatternType SurfacePatternType() const
OdCmColor
Definition: CmColor.h:59
OdDbMaterial
Definition: DbMaterial.h:39
CFxBIMMaterial::SetCutPatternName
virtual void SetCutPatternName(const OdString &patternName)
CFxBIMMaterial::SetCutColor
virtual void SetCutColor(OdCmColor color)
OdDbDwgFiler
Definition: DbFiler.h:1031
CFxBIMMaterial::Name
virtual OdString Name() const
CFxBIMMaterial::CutBoundaryUnify
virtual bool CutBoundaryUnify() const