CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef ODGSBASEINCLUDE_INC
25 #define ODGSBASEINCLUDE_INC
50 template <
class BaseVectorizerObject>
63 #if !defined(_MSC_VER) || (_MSC_VER < 1600)
83 OdGePoint2d& pixelArea,
bool includePerspective =
true)
const
123 template <
class BaseVectorizerObject>
141 if (pDevice && !pDevice->
properties().isNull() &&
187 #define MT_VECT_VIEWMTH(mthSem, mthCall) \
190 if (&view() != this) \
192 OdGsViewImpl::mthCall; \
194 #define MT_VECT_VIEWMTH_RET(mthSem, mthCall) \
197 if (&view() != this) \
198 return view().mthCall; \
199 return OdGsViewImpl::mthCall; \
343 getDeviation(deviationType, pointOnCurve, bRecalculate))
346 #ifdef ODGS_LOCAL_IDS
347 MT_VECT_VIEWMTH_RET(
OdUInt32 localViewportId(
const OdGsBaseModel *pModel)
const, localViewportId(pModel))
348 MT_VECT_VIEWMTH_RET(
OdGsViewLocalId &getViewLocalId(), getViewLocalId())
378 #undef MT_VECT_VIEWMTH_RET
379 #undef MT_VECT_VIEWMTH
411 return (&
view() !=
this);
422 template <
int SyncCount = 4>
445 void check(
int nSyncObjects) {
if (nSyncObjects != SyncCount)
throw OdError(eOutOfRange); }
453 : m_syncPoint(syncPoint), m_syncType(syncType)
455 m_syncPoint.
lock(m_syncType);
459 m_syncPoint.
unlock(m_syncType);
505 #endif // ODGSBASEINCLUDE_INC
virtual OdGePoint3d position() const
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)
void unlock(OdUInt32 nSync)
double focalLength() const
virtual void setUp(OdGsViewImpl &view)
bool isLayerVisible(OdDbStub *layerId) const
virtual void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
#define OdSaveStateFlag(type, flag, name, flags, newVal)
void screenRectNorm(OdGsDCRect &normalizedRect) const
void unlock(SyncType nSync)
void lock(SyncType nSync)
double getLinetypeGenerationCriteria() const
virtual OdGeMatrix3d screenMatrix() const
short viewportRotation() const
virtual bool isPerspective() const
ClearColor clearColor() const
#define IMPL_VECTORIZER_DEFAULT()
virtual bool has(const OdString &key) const =0
virtual OdGeMatrix3d projectionMatrix() const
OdGsBaseDeviceMTHelpersTemplate()
virtual double lensLength() const
OdGsBaseVectorizeViewDef()
GLuint GLsizei GLsizei GLint GLenum * type
OdGsBaseDeviceMTSyncHelper(OdGsBaseDeviceMTHelpers &syncPoint, OdGsBaseDeviceMTHelpers::SyncType syncType)
int lineweightToPixels(OdDb::LineWeight lineweight) const
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const
virtual OdGeMatrix3d objectToDeviceMatrix() const
virtual void getStereoParameters(double &magnitude, double ¶llax) const
virtual OdDbStub * visualStyle() const
OdArray< OdGsViewPtr > m_vectorizers
OdGsPropertiesPtr getViewportPropertiesForType(OdGsProperties::PropertiesType type) const
virtual void releaseVectorizer(OdGsBaseVectorizer *)
const OdGePoint2d & dcUpperRight() const
OdGiRegenType getRegenType() const
virtual bool cullingVolumeIntersectWithOpt(const OdGsCullingPrimitive &prim) const
const OdGeMatrix3d & eyeToWorldMatrix() const
OdGeMatrix3d eyeToScreenMatrix(OdGsOverlayId nOverlay=kGsMainOverlay) const
virtual bool isStereoEnabled() const
OdGsBaseVectorizeDevice * baseDevice()
virtual double fieldHeight() const
int lineweightToPixels(OdDb::LineWeight lineweight) const
double linetypeAlternateScaleMultiplier() const
OdUInt32 frozenLayers() const
virtual OdGeMatrix3d worldToDeviceMatrix() const
virtual double getDeviation(const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve, bool bRecalculate=false) const
void setEnabled(bool bEnable)
virtual void setVisualStyle(OdDbStub *visualStyleId)
virtual bool isCullingVolumeInitialized() const
void updateGeometryByDevice()
virtual void cullingVolumeTransformBy(const OdGeMatrix3d &xfm)
int cachedDrawables() const
virtual OdDbStub * background() const
OdGeMatrix3d perspectiveMatrix() const
double calcDeviation(const OdGiDeviationType type, const OdGePoint3d &pt) const
virtual OdRxObjectPtr getAt(const OdString &key) const =0
double unrotatedFieldHeight() const
virtual double linetypeScaleMultiplier() const
virtual void invalidateCachedViewportGeometry()
const OdGePoint2d & dcScreenMin() const
const OdGeVector3d & eyeVector() const
const OdGeMatrix3d & worldToEyeMatrix() const
virtual RenderMode mode() const
virtual double lineweightToDcScale() const
bool isRegenOnDrawForbidden() const
bool isDependentGeometryView() const
virtual OdGsBaseVectorizer * getVectorizer(bool)
double getLinetypeScaleMultiplier() const
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const
bool isViewportOnScreen() const
bool doInversePerspectivePt(OdGePoint3d &point) const
const OdGiContextualColors * contextualColors() const
bool isHelperView() const
GLint GLenum GLsizei width
OdDbStub * getViewportObjectId() const
OdGsBaseVectorizeViewMT()
const OdGePoint2d & dcLowerLeft() const
void viewportDcCorners(OdGePoint2d &lower_left, OdGePoint2d &upper_right) const
OdGsCullingVolumePtr cullingVolume() const
bool doPerspectivePt(OdGePoint3d &point) const
void screenRect(OdGsDCPoint &lowerLeft, OdGsDCPoint &upperRight) const
SyncHelper(OdGsBaseDeviceMTHelpersTemplate &syncPoint, OdUInt32 syncType)
OdGsClientViewInfo m_viewInfo
virtual void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const
OdGsBaseVectorizeViewJoin()
virtual void clearLinetypeCache()
OdGeMatrix3d objectToDeviceMatrix() const
void setVisualStyle(const OdGiVisualStyle &visualStyle)
OdGsViewImpl & view() const
OdUInt32 viewportId() const
virtual double fieldWidth() const
virtual bool isValid() const
virtual bool isViewportBorderVisible() const
const OdGeVector3d & xVector() const
bool isCompletelyVisible() const
bool isSupportPlotStyles() const
bool updateViewportProperties(OdUInt32 incFlags)
const OdGeMatrix3d & rotationMatrix() const
virtual OdGeMatrix3d viewingMatrix() const
bool isDependentViewportView() const
virtual OdGePoint3d target() const
virtual OdGsCullingVolume::IntersectionStatus cullingVolumeIntersectWith(const OdGsCullingPrimitive &prim) const
double windowAspect() const
double lineweightToPixels(double lineweight) const
virtual OdGsDevice * device() const
const OdGePoint2d & dcScreenMax() const
OdMutexPtr m_locker[SyncCount]
void clearLinetypeCache()
OdGsDCRectArray invalidRects(OdGsOverlayId nOverlay=kGsMainOverlay) const
OdGsPropertiesPtr getViewportPropertiesRoot() const
FIRSTDLL_EXPORT ThreadsCounter & odThreadsCounter()
virtual OdRxDictionaryPtr properties()=0
virtual bool isBackClipped() const
ODRX_USING_HEAP_OPERATORS(BaseVectorizerObject)
virtual OdGeVector3d upVector() const
virtual OdUInt32 numVectorizers() const
virtual double frontClip() const
OdGsBaseDeviceMTHelpers()
OdGsBaseVectorizeViewJoinMT()
double unrotatedFieldWidth() const
virtual bool isFrontClipped() const
bool isSupportPlotStyles() const
virtual void invalidate()
void lock(OdUInt32 nSync)
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &givenWorldpt, OdGePoint2d &pixelArea, bool includePerspective=true) const
bool isNonRectClipped() const
void invalidateRegion(const OdGiPathNode &path)
void check(int nSyncObjects)
virtual double backClip() const