CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GiViewportGeometry.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _OD_GIVIEWPORT_GEOMETRY_H_
25#define _OD_GIVIEWPORT_GEOMETRY_H_
26
27#include "Gi/Gi.h"
28#include "Gi/GiGeometry.h"
29
30class OdGePoint3d;
31class OdGeVector3d;
32class OdGeMatrix2d;
33class OdGiRasterImage;
34class OdGiMetafile;
35class OdGiCommonDraw;
36class OdGsDCRect;
37
38#include "TD_PackPush.h"
39
45{
46public:
48
58 virtual bool draw(const OdGiCommonDraw& drawObj,
59 void* hdc,
60 const OdGsDCRect& screenRect) const = 0;
61};
62
68{
69public:
71
72 // return false to create HDC and draw via OdGiSelfGdiDrawable interface
84 virtual bool draw(OdRxObject* pRxObject,
85 class OdGiConveyorGeometry* pDestGeom,
86 const OdGePoint3d& origin,
87 const OdGeVector3d& u, const OdGeVector3d& v,
88 const OdGsDCRect& screenRect,
89 bool isExport = false) const = 0;
90};
91
118{
119public:
121
134 virtual void polylineEye(
135 OdUInt32 numVertices,
136 const OdGePoint3d* vertexList) = 0;
137
147 virtual void polygonEye(
148 OdUInt32 numVertices,
149 const OdGePoint3d* vertexList) = 0;
150
163 virtual void polylineDc(
164 OdUInt32 numVertices,
165 const OdGePoint3d* vertexList) = 0;
166
176 virtual void polygonDc(
177 OdUInt32 numVertices,
178 const OdGePoint3d* vertexList) = 0;
179
197 virtual void rasterImageDc(
198 const OdGePoint3d& origin,
199 const OdGeVector3d& u,
200 const OdGeVector3d& v,
201 const OdGiRasterImage* pImage,
202 const OdGePoint2d* uvBoundary,
203 OdUInt32 numBoundPts,
204 bool transparency = false,
205 double brightness = 50.0,
206 double contrast = 50.0,
207 double fade = 0.0) = 0;
208
222 virtual void metafileDc(
223 const OdGePoint3d& origin,
224 const OdGeVector3d& u,
225 const OdGeVector3d& v,
226 const OdGiMetafile* pMetafile,
227 bool dcAligned = true,
228 bool allowClipping = false) = 0;
229
251 virtual void ownerDrawDc(
252 const OdGePoint3d& origin,
253 const OdGeVector3d& u,
254 const OdGeVector3d& v,
255 const OdGiSelfGdiDrawable* pDrawable,
256 bool dcAligned = true,
257 bool allowClipping = false);
258};
259
279 bool bFilter = true, double brightness = 50.0, double contrast = 50.0, double fade = 0.0);
280
281#include "TD_PackPop.h"
282
283#endif
#define ODGI_EXPORT
Definition: GiExport.h:35
ODGI_EXPORT void odgiImageViewport(OdGiViewportGeometry &pGeom, const OdGiRasterImage *pImage, const OdGePoint3d *pBoundary, bool bFilter=true, double brightness=50.0, double contrast=50.0, double fade=0.0)
unsigned int OdUInt32
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
ODRX_DECLARE_MEMBERS(OdGiSelfGdiDrawable)
virtual bool draw(const OdGiCommonDraw &drawObj, void *hdc, const OdGsDCRect &screenRect) const =0
virtual bool draw(OdRxObject *pRxObject, class OdGiConveyorGeometry *pDestGeom, const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGsDCRect &screenRect, bool isExport=false) const =0
ODRX_DECLARE_MEMBERS(OdGiSelfGiDrawablePE)
virtual void metafileDc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool dcAligned=true, bool allowClipping=false)=0
virtual void polylineDc(OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
virtual void polylineEye(OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
virtual void polygonDc(OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
virtual void polygonEye(OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
virtual void ownerDrawDc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiSelfGdiDrawable *pDrawable, bool dcAligned=true, bool allowClipping=false)
ODRX_DECLARE_MEMBERS(OdGiViewportGeometry)
virtual void rasterImageDc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiRasterImage *pImage, const OdGePoint2d *uvBoundary, OdUInt32 numBoundPts, bool transparency=false, double brightness=50.0, double contrast=50.0, double fade=0.0)=0
const GLfloat * v
Definition: gles2_ext.h:315