CFx SDK Documentation  2020SP3
DbAbstractPlotData.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef OD_DBABSTRACTPLOTDATA_H
25 #define OD_DBABSTRACTPLOTDATA_H
26 
27 #include "DbPlotSettings.h"
28 
29 #include "TD_PackPush.h"
30 
46 {
47  public:
49 
55  virtual void setProps(OdRxObject* pDstPlotObj, const OdRxObject* pSrcPlotObj) const;
56 
57  // Scale properties
58 
63  virtual bool useStandardScale(const OdRxObject* pPlotObj) const = 0;
64 
69  virtual double customScale(const OdRxObject* pPlotObj) const = 0;
70 
76  virtual void setCustomScale(OdRxObject* pPlotObj, double customScale) const = 0;
77 
82  virtual OdDbPlotSettings::StdScaleType standardScale(const OdRxObject* pPlotObj) const = 0;
83 
89  virtual void setStandardScale(OdRxObject* pPlotObj, const OdDbPlotSettings::StdScaleType standardScale) const = 0;
90 
91  // Plot style sheet
92 
97  virtual OdString styleSheet(const OdRxObject* pPlotObj) const = 0;
98 
104  virtual void setStyleSheet(OdRxObject* pPlotObj, const OdString& styleSheetName) const = 0;
105 
106  // Plot shade
107 
112  virtual OdDbPlotSettings::ShadePlotType shadePlot(const OdRxObject* pPlotObj) const = 0;
113 
119  virtual void setShadePlot(OdRxObject* pPlotObj, OdDbPlotSettings::ShadePlotType shadePlotSet) const = 0;
120 
125  virtual OdDbObjectId shadePlotId(const OdRxObject* pPlotObj) const = 0;
126 
133  virtual void setShadePlot(OdRxObject* pPlotObj, OdDbPlotSettings::ShadePlotType type, OdDbObjectId shadePlotId) const = 0;
134 
135  // Shade modes
136 
141  virtual bool plotHiddenLines(const OdRxObject* pPlotObj) const = 0;
142 
148  virtual void setPlotHiddenLines(OdRxObject* pPlotObj, bool plotHidden) const = 0;
149 
154  virtual bool plotWireframe(const OdRxObject* pPlotObj) const = 0;
155 
160  virtual bool plotAsRaster(const OdRxObject* pPlotObj) const = 0;
161 
162  // Plotting transparency
163 
167  virtual bool plotTransparency(const OdRxObject* pPlotObj) const = 0;
168 
174  virtual void setPlotTransparency(OdRxObject* pPlotObj, bool bEnable) const = 0;
175 
176  // Helpers
177 
182  virtual bool modelType(const OdRxObject* pPlotObj) const = 0;
183 
189  virtual void setModelType(OdRxObject* pPlotObj, bool modelTypeSet) = 0;
190 };
191 
196 
197 #include "TD_PackPop.h"
198 
199 #endif //#ifndef OD_DBABSTRACTPLOTDATA_H
OdDbAbstractPlotData::setModelType
virtual void setModelType(OdRxObject *pPlotObj, bool modelTypeSet)=0
OdString
Definition: OdString.h:95
OdDbAbstractPlotData
Definition: DbAbstractPlotData.h:46
OdDbAbstractPlotData::plotTransparency
virtual bool plotTransparency(const OdRxObject *pPlotObj) const =0
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbAbstractPlotDataPtr
OdSmartPtr< OdDbAbstractPlotData > OdDbAbstractPlotDataPtr
Definition: DbAbstractPlotData.h:195
OdDbAbstractPlotData::setShadePlot
virtual void setShadePlot(OdRxObject *pPlotObj, OdDbPlotSettings::ShadePlotType type, OdDbObjectId shadePlotId) const =0
OdDbAbstractPlotData::modelType
virtual bool modelType(const OdRxObject *pPlotObj) const =0
TD_PackPop.h
OdDbAbstractPlotData::setShadePlot
virtual void setShadePlot(OdRxObject *pPlotObj, OdDbPlotSettings::ShadePlotType shadePlotSet) const =0
OdDbAbstractPlotData::shadePlotId
virtual OdDbObjectId shadePlotId(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::plotWireframe
virtual bool plotWireframe(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::setProps
virtual void setProps(OdRxObject *pDstPlotObj, const OdRxObject *pSrcPlotObj) const
OdDbAbstractPlotData::plotAsRaster
virtual bool plotAsRaster(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::setPlotHiddenLines
virtual void setPlotHiddenLines(OdRxObject *pPlotObj, bool plotHidden) const =0
OdDbAbstractPlotData::setStyleSheet
virtual void setStyleSheet(OdRxObject *pPlotObj, const OdString &styleSheetName) const =0
OdSmartPtr
Definition: SmartPtr.h:58
OdDbPlotSettings::StdScaleType
StdScaleType
Definition: DbPlotSettings.h:73
OdDbAbstractPlotData::setCustomScale
virtual void setCustomScale(OdRxObject *pPlotObj, double customScale) const =0
OdDbAbstractPlotData::useStandardScale
virtual bool useStandardScale(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbAbstractPlotData)
OdDbAbstractPlotData::standardScale
virtual OdDbPlotSettings::StdScaleType standardScale(const OdRxObject *pPlotObj) const =0
TD_PackPush.h
OdDbAbstractPlotData::styleSheet
virtual OdString styleSheet(const OdRxObject *pPlotObj) const =0
DbPlotSettings.h
OdDbAbstractPlotData::plotHiddenLines
virtual bool plotHiddenLines(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::customScale
virtual double customScale(const OdRxObject *pPlotObj) const =0
OdDbPlotSettings::ShadePlotType
ShadePlotType
Definition: DbPlotSettings.h:112
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbAbstractPlotData::shadePlot
virtual OdDbPlotSettings::ShadePlotType shadePlot(const OdRxObject *pPlotObj) const =0
OdDbAbstractPlotData::setPlotTransparency
virtual void setPlotTransparency(OdRxObject *pPlotObj, bool bEnable) const =0
OdDbAbstractPlotData::setStandardScale
virtual void setStandardScale(OdRxObject *pPlotObj, const OdDbPlotSettings::StdScaleType standardScale) const =0