25#ifndef ODTRVISVIEWPORTDEF
26#define ODTRVISVIEWPORTDEF
147 { ptOut[0] = ptIn[0]; ptOut[1] = ptIn[1];
xform2d(ptOut); }
152 for (
OdUInt32 nPoint = 0; nPoint < nPoints; nPoint++, pPtOut += 2)
161 pPt[0] = (float)transformPt.
x; pPt[1] = (
float)transformPt.
y; }
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
const OdTrVisId kTrVisNegativeId
const OdTrVisId kTrVisNullId
#define OD_TRVIS_SETALPHA(color, alpha)
const T * asArrayPtr() const
OdArray & setPhysicalLength(size_type physLength)
bool isEqualTo(const OdGeMatrix3d &matrix, const OdGeTol &tol=OdGeContext::gTol) const
static GE_STATIC_EXPORT const OdGeMatrix3d kIdentity
OdGePoint3d & transformBy(const OdGeMatrix3d &xfm)
OdGePoint2d convert2d(const OdGePlanarEnt &plane) const
GLint GLenum GLsizei GLsizei GLint border
void setRegion(const OdTrVisViewportRegionDef ®ion)
const OdTrVisViewportRegionDef & region() const
OdTrVisViewportRegionDef & region()
OdTrVisViewportRegionDef m_region
void setWidth(int nWidth)
void setColor(ODCOLORREF color)
OdTrVisViewportRegionXform & localXform()
void enableNrcClip(bool bSet)
void setNrcClipRegion(const OdTrVisViewportRegionDef &nrcClip)
void setLocalXform(const OdTrVisViewportRegionXform &locXform)
const OdTrVisViewportBorderDef & border() const
OdGsDCRectDouble m_screenRect
OdTrVisViewportRegionDef m_nrcClip
bool hasLocalXform() const
const OdTrVisViewportRegionXform & localXform() const
void setBorder(const OdTrVisViewportBorderDef &border)
OdTrVisViewportRegionDef & nrcClipRegion()
void apply(const OdTrVisViewportClipDef &pDef, bool bApplyNrcClip, bool bApplyBorder)
bool isNrcClipEnabled() const
bool isBorderEnabled() const
const OdGsDCRectDouble & screenRect() const
OdTrVisViewportRegionXform m_localXform
void enableBorder(bool bSet)
void resetFlags(OdUInt16 nFlags=0)
void setScreenRect(const OdGsDCRectDouble &screenRect)
OdTrVisViewportBorderDef & border()
const OdTrVisViewportRegionDef & nrcClipRegion() const
OdTrVisViewportBorderDef m_border
OdTrVisViewportLineweightsDef m_lineweights
const OdTrVisViewportLineStyleDef & viewportLinestyles() const
void setViewportLineweights(const OdTrVisViewportLineweightsDef &vpLwd)
OdTrVisViewportClipDef m_clip
void setViewportFading(const OdTrVisViewportFadingDef &vpFade)
OdTrVisViewportFadingDef & viewportFading()
OdTrVisViewportShadingDef m_shading
OdTrVisViewportFadingDef m_fading
OdTrVisViewportDef & viewportDef()
OdTrVisViewportShadingDef & viewportShading()
void setViewportDef(const OdTrVisViewportDef &vpDef)
void setViewportLinestyles(const OdTrVisViewportLineStyleDef &vpLs)
const OdTrVisViewParamsDef & viewParams() const
OdTrVisViewportLineStyleDef & viewportLinestyles()
OdTrVisViewParamsDef & viewParams()
const OdTrVisViewportFadingDef & viewportFading() const
const OdTrVisViewportShadingDef & viewportShading() const
void setViewportClip(const OdTrVisViewportClipDef &vpClip, bool bSetNrcClip=true, bool bSetBorder=true)
void setDefault(bool bInitVpDef=true)
OdTrVisViewParamsDef m_viewParams
const OdTrVisViewportDef & viewportDef() const
const OdTrVisViewportClipDef & viewportClip() const
const OdTrVisViewportLineweightsDef & viewportLineweights() const
void setViewParams(const OdTrVisViewParamsDef &viewProps)
OdTrVisViewportClipDef & viewportClip()
OdTrVisViewportLineweightsDef & viewportLineweights()
void setViewportShading(const OdTrVisViewportShadingDef &vpShad)
OdTrVisViewportLineStyleDef m_linestyle
bool isPSModelViewport() const
OdTrVisViewportId overallViewportId() const
bool isPSOverallViewport() const
bool isPSHelperViewport() const
bool isViewportVisible() const
void setViewportVisible(bool bSet)
void setOverallViewportId(OdTrVisViewportId vpId)
void resetViewportFlags(OdUInt16 vpFlags=0)
OdTrVisViewportId m_overallViewportId
void setPSOverallViewport(bool bSet)
void setPSHelperViewport(bool bSet)
void setPSModelViewport(bool bSet)
OdUInt8 effectiveFlags() const
bool operator!=(const OdTrVisViewportFadingDef &def) const
bool operator==(const OdTrVisViewportFadingDef &def) const
void setAsCref(ODCOLORREF cref)
OdUInt8 metafileFade() const
ODCOLORREF m_fadingConfig
void setXrefFade(OdUInt8 nFade)
OdUInt8 layerFade() const
void setFading(OdUInt8 nLayerFade=0, OdUInt8 nXrefFade=0, OdUInt8 nMfFade=0)
void setMetafileFade(OdUInt8 nFade)
void setLayerFade(OdUInt8 nFade)
void updateEffectiveFlags()
ODCOLORREF getAsCref() const
ODCOLORREF getAsCref() const
bool operator==(const OdTrVisViewportLineStyleDef &def) const
bool isPointsLineweightEnabled() const
void setLineStyle(OdUInt32 nCapStyle, OdUInt32 nJoinStyle)
void enablePointsLineweight(bool bEnable)
OdUInt32 lineJoinStyle() const
OdUInt32 lineCapStyle() const
bool operator!=(const OdTrVisViewportLineStyleDef &def) const
void setLineStyleConfig(bool bPointLwds=true, OdUInt32 nCapStyle=2, OdUInt32 nJoinStyle=2)
void setLineCapStyle(OdUInt32 nStyle)
void setAsCref(ODCOLORREF cref)
ODCOLORREF m_lineStyleConfig
void setLineJoinStyle(OdUInt32 nStyle)
OdUInt32 numLineweightsEnum() const
OdUInt8Array m_lineweightsEnum
void setLineweightsCoef(double lwdCoef)
bool hasLineweightsEnum() const
const OdUInt8 * lineweightsEnum() const
double lineweightsCoef() const
void setLineweightsEnum(const OdUInt8Array &lwdEnum)
OdUInt32 numPoints() const
void setPoints(const OdFloatArray &aPoints)
const int * counts() const
OdUInt32 numCounts() const
void setCounts(const OdIntArray &aCounts)
const float * points() const
bool hasRenderProgram() const
OdTrVisProgramId renderProgram() const
OdTrVisRenderMode & renderMode()
ODCOLORREF faceFillColor() const
OdTrVisRenderMode m_renderMode
OdTrVisVisualStyleId visualStyle() const
OdTrVisProgramId m_rmShader
bool hasVisualStyle() const
void setRenderProgram(OdTrVisProgramId programId)
const OdTrVisRenderMode & renderMode() const
ODCOLORREF m_faceFillColor
OdTrVisVisualStyleId m_visualStyle
void setFaceFillColor(ODCOLORREF fillColor)
void setRenderMode(const OdTrVisRenderMode &rm)
void setVisualStyle(OdTrVisVisualStyleId visualStyleId)