24#ifndef __GS_H_INCLUDED_
25#define __GS_H_INCLUDED_
155 kFlatShadedWithWireframe = 5,
156 kGouraudShadedWithWireframe = 6,
818 virtual void dolly(
double xDolly,
double yDolly,
double zDolly) = 0;
834 virtual void roll(
double rollAngle) = 0;
852 virtual void orbit(
double xOrbit,
double yOrbit) = 0;
859 virtual void zoom(
double zoomFactor) = 0;
877 virtual void pan(
double xPan,
double yPan) = 0;
1078 OdGePoint2d& pixelDensity,
bool bUsePerspective =
true)
const = 0;
1571 bool enableLayerVisibilityPerView =
false) = 0;
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
OdSmartPtr< OdGsModule > OdGsModulePtr
OdSmartPtr< OdGiDrawable > OdGiDrawablePtr
OdSmartPtr< OdGsDevice > OdGsDevicePtr
OdSmartPtr< OdGsUpdateManager > OdGsUpdateManagerPtr
const OdGsMarker kNullSubentIndex
OdArray< OdGsModel *, OdMemoryAllocator< OdGsModel * > > OdGsModelArray
OdSmartPtr< OdGsView > OdGsViewPtr
OdSmartPtr< OdGsModel > OdGsModelPtr
OdSmartPtr< OdGsReactor > OdGsReactorPtr
OdSmartPtr< OdRxDictionary > OdRxDictionaryPtr
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
#define SETBIT_1(flags, bit)
void setCombineSubEntities(bool bSet)
OdGsCollisionDetectionContext()
void setIgnoreViewExtents(bool bSet)
void setCalculateDistance(bool bSet)
void setIntersectionOnly(bool bSet)
bool intersectionWithModel() const
bool isToleranceOverride() const
bool ignoreViewExtents() const
void setToleranceOverride(const OdGeTol &tol)
void setProcessSignleList(bool bSet)
bool getProcessSignleList() const
bool combineSubEntities() const
bool getCalculateDistance() const
void setIntersectionWithModel(bool bSet)
const OdGeTol & toleranceOverride() const
double getClearance() const
void setCheckAll(bool bSet)
bool intersectionOnly() const
void setClearance(double c)
virtual OdUInt32 collisionDetected(const OdGiPathNode *pPathNode1, const OdGiPathNode *pPathNode2, double dDistance)
virtual OdUInt32 collisionDetected(const OdGiPathNode *, const OdGiPathNode *)
virtual void onRealizeForegroundPalette()=0
virtual void setLogicalPalette(const ODCOLORREF *logicalPalette, int numColors)=0
virtual void insertView(int viewIndex, OdGsView *pView)=0
virtual OdGsModelPtr createModel()=0
virtual bool eraseView(OdGsView *pView)=0
virtual void onSize(const OdGsDCRect &outputRect)=0
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion)=0
virtual void invalidate()=0
virtual OdRxDictionaryPtr properties()=0
virtual bool eraseView(int viewIndex)=0
virtual void setUpdateManager(OdGsUpdateManagerPtr pManager)
virtual ODCOLORREF getBackgroundColor()=0
virtual void getSize(OdGsDCRectDouble &outputRect) const
virtual OdGsUpdateManagerPtr getUpdateManager(bool createIfNotExist=false)
virtual bool isValid() const =0
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
virtual void getSize(OdGsDCRect &outputRect) const =0
virtual void update(OdGsDCRect *pUpdatedRect=0)=0
virtual bool saveDeviceState(OdGsFiler *pFiler) const
virtual OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0
virtual OdGsView * viewAt(int viewIndex)=0
virtual bool loadDeviceState(OdGsFiler *pFiler)
ODRX_DECLARE_MEMBERS(OdGsDevice)
virtual void onSize(const OdGsDCRectDouble &outputRect)
virtual void addView(OdGsView *pView)=0
virtual void onRealizeBackgroundPalette()=0
virtual void eraseAllViews()=0
virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)=0
virtual bool setBackgroundColor(ODCOLORREF backgroundColor)=0
virtual bool isModelCompatible(OdGsModel *pModel) const
virtual OdGiContext * userGiContext() const =0
virtual const ODCOLORREF * getLogicalPalette(int &numColors) const =0
virtual int numViews() const =0
virtual void invalidate(const OdGsDCRect &screenRect)=0
virtual void removeReactor(OdGsReactor *pReactor)=0
ODRX_DECLARE_MEMBERS(OdGsModule)
virtual OdGsDevicePtr createBitmapDevice()
virtual void addReactor(OdGsReactor *pReactor)=0
virtual OdGsDevicePtr createDevice()=0
virtual void viewWasUpdated(OdGsView *pView, int flags)
virtual void viewToBeUpdated(OdGsView *pView, int flags)
virtual void viewWasCreated(OdGsView *pView)
virtual void viewToBeDestroyed(OdGsView *pView)
virtual void gsToBeUnloaded(OdGsModule *pModule)
virtual OdGePoint3d position() const =0
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)=0
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const =0
virtual void enableSSAO(bool bEnable)=0
virtual void getViewport(OdGsDCRectDouble &screenRect) const
virtual OdDbStub * rootDrawableIdAt(int i, OdGsModelPtr *pModelReturn=0) const =0
virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
virtual void invalidate()=0
virtual void setViewportBorderVisibility(bool visible)=0
virtual OdGsModel * getModel(const OdGiDrawable *pDrawable) const =0
virtual bool erase(OdGiDrawable *sceneGraph)=0
virtual void pan(double xPan, double yPan)=0
virtual void beginInteractivity(double frameRateInHz)=0
virtual int numRootDrawables() const =0
virtual const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
virtual double lineweightToDcScale() const =0
virtual OdGeMatrix3d projectionMatrix() const =0
virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const =0
virtual void setViewport(const OdGsDCRect &screenRect)=0
virtual bool isValid() const =0
virtual OdUInt32 antiAliasingMode() const =0
virtual OdDbStub * background() const =0
virtual void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projectionType=kParallel)=0
virtual void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const =0
virtual void clearFrozenLayers()=0
virtual OdGsDevice * device() const =0
virtual OdGeVector3d upVector() const =0
virtual void zoom(double zoomFactor)=0
virtual void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
virtual bool isStereoEnabled() const =0
virtual void select(const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)=0
virtual OdDbStub * visualStyle() const =0
virtual void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0
virtual void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const =0
virtual OdGeMatrix3d screenMatrix() const =0
virtual bool isInInteractivity() const =0
virtual void setLineweightToDcScale(double scale)=0
void removeViewport3dClipping()
virtual bool isPerspective() const =0
virtual void invalidateCachedViewportGeometry()=0
virtual void setViewport(const OdGsDCRectDouble &screenRect)
virtual void setViewportBorderProperties(ODCOLORREF color, int width)=0
virtual void setVisualStyle(const OdGiVisualStyle &visualStyle)=0
virtual double fieldHeight() const =0
virtual void setLensLength(double lensLength)=0
virtual void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
virtual void eraseAll()=0
virtual OdGiContext * userGiContext() const =0
virtual void setStereoParameters(double magnitude, double parallax)=0
virtual void getViewport(OdGsDCRect &screenRect) const =0
virtual void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)=0
virtual void enableAntiAliasing(OdUInt32 nMode)=0
virtual bool add(OdGiDrawable *pSceneGraph, OdGsModel *pModel)=0
virtual void viewParameters(OdGsView *pView) const =0
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion)=0
virtual bool isViewportBorderVisible() const =0
virtual bool ssaoMode() const =0
virtual double linetypeAlternateScaleMultiplier() const =0
virtual double linetypeScaleMultiplier() const =0
virtual void dolly(double xDolly, double yDolly, double zDolly)=0
virtual void initLights(OdRxIterator *pLightsIterator)=0
virtual void setBackClip(double backClip)=0
virtual OdGsModelArray getModelList() const =0
virtual void setEnableBackClip(bool enable)=0
virtual void endInteractivity()=0
virtual RenderMode mode() const =0
void removeViewportClipRegion()
virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType=kTwoLights)=0
virtual OdGeMatrix3d viewingMatrix() const =0
ODRX_DECLARE_MEMBERS(OdGsView)
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const =0
virtual void setVisualStyle(OdDbStub *visualStyleId)=0
virtual void roll(double rollAngle)=0
virtual OdGeMatrix3d objectToDeviceMatrix() const =0
virtual void freezeLayer(OdDbStub *layerID)=0
virtual double backClip() const =0
virtual void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
virtual void enableStereo(bool enabled)=0
virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)=0
virtual void collide(OdGiPathNode const *const *pInputList, OdUInt32 nInputListSize, OdGsCollisionDetectionReactor *pReactor, OdGiPathNode const *const *pCollisionWithList=NULL, OdUInt32 nCollisionWithListSize=0, const OdGsCollisionDetectionContext *pCtx=NULL)=0
virtual bool isFrontClipped() const =0
virtual double fieldWidth() const =0
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)=0
virtual void invalidate(const OdGsDCRect &screenRect)=0
virtual void getStereoParameters(double &magnitude, double ¶llax) const =0
virtual void setMode(RenderMode mode)=0
virtual bool visualStyle(OdGiVisualStyle &visualStyle) const =0
virtual void setEnableFrontClip(bool enable)=0
virtual void orbit(double xOrbit, double yOrbit)=0
virtual bool pointInView(const OdGePoint3d &pt) const =0
virtual OdGiDrawablePtr rootDrawableAt(int i, OdGsModelPtr *pModelReturn=0) const =0
virtual void setClearColor(ClearColor color)=0
virtual double frontClip() const =0
virtual void setBackground(OdDbStub *backgroundId)=0
virtual OdGePoint3d target() const =0
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGePoint2d const *vertices)=0
virtual bool isBackClipped() const =0
virtual OdGeMatrix3d worldToDeviceMatrix() const =0
virtual double lensLength() const =0
virtual bool exceededBounds()=0
virtual void setFrontClip(double frontClip)=0
virtual double interactivityFrameRate() const =0
virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)=0
virtual void thawLayer(OdDbStub *layerID)=0
virtual void dolly(const OdGeVector3d &dollyVector)=0
virtual bool isVisible()=0
GLint GLenum GLsizei width
OdDbStub * viewportObjectId
OdGiContextualColorsPtr contextColors