CFx SDK Documentation  2023 SP0
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
OdSmartPtr< OdDbAbstractPlotData > OdDbAbstractPlotDataPtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
virtual void setStandardScale(OdRxObject *pPlotObj, const OdDbPlotSettings::StdScaleType standardScale) const =0
virtual bool useStandardScale(const OdRxObject *pPlotObj) const =0
virtual bool plotTransparency(const OdRxObject *pPlotObj) const =0
virtual void setShadePlot(OdRxObject *pPlotObj, OdDbPlotSettings::ShadePlotType type, OdDbObjectId shadePlotId) const =0
virtual void setModelType(OdRxObject *pPlotObj, bool modelTypeSet)=0
virtual void setShadePlot(OdRxObject *pPlotObj, OdDbPlotSettings::ShadePlotType shadePlotSet) const =0
virtual OdDbPlotSettings::ShadePlotType shadePlot(const OdRxObject *pPlotObj) const =0
virtual bool modelType(const OdRxObject *pPlotObj) const =0
virtual OdString styleSheet(const OdRxObject *pPlotObj) const =0
virtual OdDbObjectId shadePlotId(const OdRxObject *pPlotObj) const =0
virtual bool plotAsRaster(const OdRxObject *pPlotObj) const =0
virtual void setProps(OdRxObject *pDstPlotObj, const OdRxObject *pSrcPlotObj) const
virtual void setCustomScale(OdRxObject *pPlotObj, double customScale) const =0
virtual OdDbPlotSettings::StdScaleType standardScale(const OdRxObject *pPlotObj) const =0
ODRX_DECLARE_MEMBERS(OdDbAbstractPlotData)
virtual void setPlotHiddenLines(OdRxObject *pPlotObj, bool plotHidden) const =0
virtual double customScale(const OdRxObject *pPlotObj) const =0
virtual void setStyleSheet(OdRxObject *pPlotObj, const OdString &styleSheetName) const =0
virtual bool plotWireframe(const OdRxObject *pPlotObj) const =0
virtual void setPlotTransparency(OdRxObject *pPlotObj, bool bEnable) const =0
virtual bool plotHiddenLines(const OdRxObject *pPlotObj) const =0
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274