CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
OdTrGL2LocalViewer Class Referenceabstract

#include <TrRndLocalViewer.h>

Public Types

enum  OrbitType { kOrbitPerp = 0 , kOrbitHorizontal , kOrbitVertical , kOrbitEye }
 
typedef OdVector< OdTrVisLayerId, OdMemoryAllocator< OdTrVisLayerId > > LayersList
 

Public Member Functions

virtual OdTrGL2LocalRendererrenderer ()=0
 
virtual const OdTrGL2LocalRendererrenderer () const =0
 
virtual ODCOLORREF backgroundColor () const =0
 
virtual void setBackgroundColor (ODCOLORREF rgba)=0
 
virtual void resize (const OdGsDCRect &dcRect)=0
 
virtual void update (OdTrVisRenderClient *pDevice)=0
 
virtual OdUInt32 activeViewportIndex () const =0
 
virtual OdTrVisViewportId activeViewportId () const =0
 
virtual bool isActiveViewport (OdTrVisViewportId vpId) const =0
 
virtual void setActiveViewport (OdTrVisViewportId vpId)=0
 
virtual void setActiveViewportIndex (int nViewport)=0
 
virtual void pan (int nX, int nY)=0
 
virtual void zoom (float fDelta)=0
 
virtual void zoom (int nX, int nY, float fDelta)=0
 
virtual void orbit (int nX, int nY, OrbitType type=kOrbitPerp, float angle=0.0f)=0
 
virtual void zoomExtents (float coef=1.03f)=0
 
virtual void translate (const OdGeVector3d &offset)=0
 
virtual void rotate (double xAngle, double yAngle, double zAngle, bool bLocalCS=true)=0
 
virtual void getLayersList (LayersList &layers) const =0
 
virtual const OdTrVisLayerDefgetLayerDef (OdTrVisLayerId layerId) const =0
 
virtual void enableLayer (OdTrVisLayerId layerId, bool bByViewport=false)=0
 
virtual void disableLayer (OdTrVisLayerId layerId, bool bByViewport=false)=0
 
virtual void toggleLayer (OdTrVisLayerId layerId, bool bByViewport=false)=0
 
virtual void highlightAll (bool bHighlight, bool bByViewport=true)=0
 
virtual void highlightByOwnerId (const OdDbStub *pOwner, bool bHighlight, bool bByViewport=true)=0
 
virtual OdTrVisViewportId pickViewport (int nX, int nY)=0
 
virtual OdGsView::RenderMode renderMode (OdTrVisViewportId vpId) const =0
 
virtual void setRenderMode (OdTrVisViewportId vpId, OdGsView::RenderMode rm)=0
 
virtual void addSectionPlane (OdTrVisViewportId vpId, const OdTrVisSectionPlane &plane)=0
 
virtual void removeSectionPlane (OdTrVisViewportId vpId)=0
 
virtual OdUInt32 sectionPlanesNumber (OdTrVisViewportId vpId) const =0
 
virtual OdTrVisSectionPlanegetSectionPlane (OdTrVisViewportId vpId, OdUInt32 nPlane=0) const =0
 
virtual void transformSectionPlanes (OdTrVisViewportId vpId, const OdGeMatrix3d &xForm)=0
 
virtual void markViewportModified (OdTrVisViewportId id, OdUInt32 kindOfMod)=0
 
virtual bool recomputeSceneDepth (OdTrVisViewportId vpId)=0
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 36 of file TrRndLocalViewer.h.

Member Typedef Documentation

◆ LayersList

Definition at line 86 of file TrRndLocalViewer.h.

Member Enumeration Documentation

◆ OrbitType

Enumerator
kOrbitPerp 
kOrbitHorizontal 
kOrbitVertical 
kOrbitEye 

Definition at line 70 of file TrRndLocalViewer.h.

Member Function Documentation

◆ activeViewportId()

virtual OdTrVisViewportId OdTrGL2LocalViewer::activeViewportId ( ) const
pure virtual

◆ activeViewportIndex()

virtual OdUInt32 OdTrGL2LocalViewer::activeViewportIndex ( ) const
pure virtual

◆ addSectionPlane()

virtual void OdTrGL2LocalViewer::addSectionPlane ( OdTrVisViewportId  vpId,
const OdTrVisSectionPlane plane 
)
pure virtual

◆ backgroundColor()

virtual ODCOLORREF OdTrGL2LocalViewer::backgroundColor ( ) const
pure virtual

◆ disableLayer()

virtual void OdTrGL2LocalViewer::disableLayer ( OdTrVisLayerId  layerId,
bool  bByViewport = false 
)
pure virtual

◆ enableLayer()

virtual void OdTrGL2LocalViewer::enableLayer ( OdTrVisLayerId  layerId,
bool  bByViewport = false 
)
pure virtual

◆ getLayerDef()

virtual const OdTrVisLayerDef* OdTrGL2LocalViewer::getLayerDef ( OdTrVisLayerId  layerId) const
pure virtual

◆ getLayersList()

virtual void OdTrGL2LocalViewer::getLayersList ( LayersList layers) const
pure virtual

◆ getSectionPlane()

virtual OdTrVisSectionPlane* OdTrGL2LocalViewer::getSectionPlane ( OdTrVisViewportId  vpId,
OdUInt32  nPlane = 0 
) const
pure virtual

◆ highlightAll()

virtual void OdTrGL2LocalViewer::highlightAll ( bool  bHighlight,
bool  bByViewport = true 
)
pure virtual

◆ highlightByOwnerId()

virtual void OdTrGL2LocalViewer::highlightByOwnerId ( const OdDbStub *  pOwner,
bool  bHighlight,
bool  bByViewport = true 
)
pure virtual

◆ isActiveViewport()

virtual bool OdTrGL2LocalViewer::isActiveViewport ( OdTrVisViewportId  vpId) const
pure virtual

◆ markViewportModified()

virtual void OdTrGL2LocalViewer::markViewportModified ( OdTrVisViewportId  id,
OdUInt32  kindOfMod 
)
pure virtual

◆ orbit()

virtual void OdTrGL2LocalViewer::orbit ( int  nX,
int  nY,
OrbitType  type = kOrbitPerp,
float  angle = 0.0f 
)
pure virtual

◆ pan()

virtual void OdTrGL2LocalViewer::pan ( int  nX,
int  nY 
)
pure virtual

◆ pickViewport()

virtual OdTrVisViewportId OdTrGL2LocalViewer::pickViewport ( int  nX,
int  nY 
)
pure virtual

◆ recomputeSceneDepth()

virtual bool OdTrGL2LocalViewer::recomputeSceneDepth ( OdTrVisViewportId  vpId)
pure virtual

◆ removeSectionPlane()

virtual void OdTrGL2LocalViewer::removeSectionPlane ( OdTrVisViewportId  vpId)
pure virtual

◆ renderer() [1/2]

virtual const OdTrGL2LocalRenderer* OdTrGL2LocalViewer::renderer ( ) const
pure virtual

◆ renderer() [2/2]

virtual OdTrGL2LocalRenderer* OdTrGL2LocalViewer::renderer ( )
pure virtual

◆ renderMode()

virtual OdGsView::RenderMode OdTrGL2LocalViewer::renderMode ( OdTrVisViewportId  vpId) const
pure virtual

◆ resize()

virtual void OdTrGL2LocalViewer::resize ( const OdGsDCRect dcRect)
pure virtual

◆ rotate()

virtual void OdTrGL2LocalViewer::rotate ( double  xAngle,
double  yAngle,
double  zAngle,
bool  bLocalCS = true 
)
pure virtual

◆ sectionPlanesNumber()

virtual OdUInt32 OdTrGL2LocalViewer::sectionPlanesNumber ( OdTrVisViewportId  vpId) const
pure virtual

◆ setActiveViewport()

virtual void OdTrGL2LocalViewer::setActiveViewport ( OdTrVisViewportId  vpId)
pure virtual

◆ setActiveViewportIndex()

virtual void OdTrGL2LocalViewer::setActiveViewportIndex ( int  nViewport)
pure virtual

◆ setBackgroundColor()

virtual void OdTrGL2LocalViewer::setBackgroundColor ( ODCOLORREF  rgba)
pure virtual

◆ setRenderMode()

virtual void OdTrGL2LocalViewer::setRenderMode ( OdTrVisViewportId  vpId,
OdGsView::RenderMode  rm 
)
pure virtual

◆ toggleLayer()

virtual void OdTrGL2LocalViewer::toggleLayer ( OdTrVisLayerId  layerId,
bool  bByViewport = false 
)
pure virtual

◆ transformSectionPlanes()

virtual void OdTrGL2LocalViewer::transformSectionPlanes ( OdTrVisViewportId  vpId,
const OdGeMatrix3d xForm 
)
pure virtual

◆ translate()

virtual void OdTrGL2LocalViewer::translate ( const OdGeVector3d offset)
pure virtual

◆ update()

virtual void OdTrGL2LocalViewer::update ( OdTrVisRenderClient pDevice)
pure virtual

◆ zoom() [1/2]

virtual void OdTrGL2LocalViewer::zoom ( float  fDelta)
pure virtual

◆ zoom() [2/2]

virtual void OdTrGL2LocalViewer::zoom ( int  nX,
int  nY,
float  fDelta 
)
pure virtual

◆ zoomExtents()

virtual void OdTrGL2LocalViewer::zoomExtents ( float  coef = 1.03f)
pure virtual

The documentation for this class was generated from the following file: