24#ifndef __OD_GS_VIEW_PROPS__
25#define __OD_GS_VIEW_PROPS__
101 double m_deviation[5];
154 bool bCompareFrozenLayers =
true)
const;
180 return (i == props.
size());
196 if(viewportId < m_data.size())
198 if(!m_data[viewportId])
203 m_data.insert(m_data.end(), viewportId + 1 - m_data.size(), 0);
206 ++m_data[viewportId];
214 if((--m_data[viewportId]) == 0)
226 for(
unsigned i = m_data.size(); i; )
228 return m_nMaxVpId = (int)i;
235 for(
unsigned i = 0; i < m_data.size(); ++i)
240 void clear() { m_data.clear(); m_nViews = 0; m_nMaxVpId = -1; }
244 return (viewportId < m_data.size()) && (m_data[viewportId] != 0);
252 void start() { m_pos = -1; findNext(); }
253 bool done()
const {
return m_pos < 0 || m_pos >= (int)(m_refs.m_data.size()); }
261 for(++m_pos; (m_pos < (int)m_refs.m_data.size()) && !m_refs.m_data[m_pos]; ++m_pos);
318 return ::memcmp(ar1.
getPtr(), ar2.
getPtr(),
sizeof(OdDbStub*) * ar2.
size()) == 0;
327 ,
bool bCompareFrozenLayers
#define GS_TOOLKIT_EXPORT
bool isInvalid(const ViewPropsArray &props)
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 ViewRefs & viewRefs() const
StockProps(const StockProps &c)
unsigned numViewProps() const
const ViewProps & viewProps(unsigned i) const
const OdRxClass * deviceClass() const
bool set(const ViewRefs &refs, const ViewPropsArray &props, const OdRxClass *deviceClass)
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