CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __OD_GS_VIEW_PROPS__
25 #define __OD_GS_VIEW_PROPS__
57 double m_deviation[5];
71 bool bCompareFrozenLayers =
true)
const;
90 if(viewportId < m_data.size())
92 if(!m_data[viewportId])
97 m_data.insert(m_data.end(), viewportId + 1 - m_data.size(), 0);
100 ++m_data[viewportId];
108 if((--m_data[viewportId]) == 0)
120 for(
unsigned i = m_data.size(); i; )
122 return m_nMaxVpId = (int)i;
129 for(
unsigned i = 0; i < m_data.size(); ++i)
134 void clear() { m_data.clear(); m_nViews = 0; m_nMaxVpId = -1; }
135 #ifndef ODGS_LOCAL_IDS
142 return (viewportId < m_data.size()) && (m_data[viewportId] != 0);
150 void start() { m_pos = -1; findNext(); }
151 bool done()
const {
return m_pos < 0 || m_pos >= (int)(m_refs.m_data.size()); }
159 for(++m_pos; (m_pos < (int)m_refs.m_data.size()) && !m_refs.m_data[m_pos]; ++m_pos);
199 if(i == props.
size())
219 return ::memcmp(ar1.
getPtr(), ar2.
getPtr(),
sizeof(OdDbStub*) * ar2.
size()) == 0;
228 ,
bool bCompareFrozenLayers
232 if((!nMask) && !bCompareFrozenLayers)
324 #endif // __OD_GS_VIEW_PROPS__
#define GETBIT(flags, bit)
bool contains(OdUInt32 viewportId) const
const OdRxClass * m_deviceClass
bool OdEqual(double x, double y, double tol=1.e-10)
bool isCompatibleWith(const ViewProps &props, OdUInt32 nFlags, bool bCompareFrozenLayers=true) const
const ViewProps & viewProps(unsigned i) const
const T & getAt(size_type arrayIndex) const
StockProps(const StockProps &c)
ViewPropsArray m_viewProps
const void * m_renderModule
double m_linetypeScaleMultiplier
int maxViewportId() const
#define SETBIT(flags, bit, value)
void add(OdUInt32 viewportId)
const_iterator(const const_iterator &c)
OdIntPtr m_filterFunction
OdGeMatrix3d m_worldToEye
OdGePoint3d m_cameraTarget
OdDbStubPtrArray m_frozenLayers
OdArray< ViewProps > ViewPropsArray
OdUInt32 numViews() const
bool sameSortedArrays(const OdDbStubPtrArray &ar1, const OdDbStubPtrArray &ar2)
OdGePoint3d m_cameraLocation
bool OdNegative(double x, double tol=1.e-10)
const OdRxClass * deviceClass() const
OdGiRegenType m_regenType
unsigned numViewProps() const
void set(const OdGsBaseModel *pModel)
unsigned numDifferentViewports() const
const ViewRefs & viewRefs() const
OdGeVector3d m_cameraUpVector
OdGsView::RenderMode m_renderMode
void setInvalid(bool bValue)
#define GS_TOOLKIT_EXPORT
void set(const OdGsViewImpl &view)
OdGePoint2d m_vpUpperRight
OdUInt32 difference(const ViewProps &props) const
OdGePoint2d m_vpLowerLeft
OdUInt32 viewportId() const
void remove(OdUInt32 viewportId)
const_iterator(const ViewRefs &refs)
bool set(const ViewRefs &refs, const ViewPropsArray &props, const OdRxClass *deviceClass)