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)
#define GS_TOOLKIT_EXPORT
OdArray< ViewProps > ViewPropsArray
bool sameSortedArrays(const OdDbStubPtrArray &ar1, const OdDbStubPtrArray &ar2)
bool OdEqual(double x, double y, double tol=1.e-10)
#define SETBIT(flags, bit, value)
bool OdNegative(double x, double tol=1.e-10)
#define GETBIT(flags, bit)
const T & getAt(size_type arrayIndex) const
const OdRxClass * deviceClass() const
StockProps(const StockProps &c)
unsigned numViewProps() const
const ViewRefs & viewRefs() const
bool set(const ViewRefs &refs, const ViewPropsArray &props, const OdRxClass *deviceClass)
const ViewProps & viewProps(unsigned i) const
const OdRxClass * m_deviceClass
ViewPropsArray m_viewProps
const_iterator(const const_iterator &c)
const_iterator(const ViewRefs &refs)
OdUInt32 viewportId() const
void remove(OdUInt32 viewportId)
bool contains(OdUInt32 viewportId) const
int maxViewportId() const
void set(const OdGsBaseModel *pModel)
unsigned numDifferentViewports() const
OdUInt32 numViews() const
void add(OdUInt32 viewportId)
OdGeVector3d m_cameraUpVector
OdGePoint3d m_cameraLocation
OdDbStubPtrArray m_frozenLayers
OdGePoint2d m_vpUpperRight
bool isCompatibleWith(const ViewProps &props, OdUInt32 nFlags, bool bCompareFrozenLayers=true) const
OdGsView::RenderMode m_renderMode
void setInvalid(bool bValue)
OdGePoint3d m_cameraTarget
const void * m_renderModule
void set(const OdGsViewImpl &view)
OdGiRegenType m_regenType
OdIntPtr m_filterFunction
double m_linetypeScaleMultiplier
OdGeMatrix3d m_worldToEye
OdGePoint2d m_vpLowerLeft
OdUInt32 difference(const ViewProps &props) const