VECTOROBJECT

Summary

The VECTOROBJECT structure is an abstract data type that acts as the base of all 2D/3D objects in the toolkit.

Syntax

typedef struct tagVECTOROBJECT 
{ 
   L_INT nSize; 
   L_INT nType; 
   L_INT nId; 
   L_INT nLayerId; 
   L_INT nGroupId; 
   L_INT nROP; 
   DWORD dwFlags; 
   DWORD dwTag; 
} VECTOROBJECT,  * pVECTOROBJECT; 

Members

L_INT nSize

Size of this structure. Used for versioning.

L_INT nType

Type of the vector object. Possible values are:

Value Meaning
VECTOR_ARC Arc.
VECTOR_CHORD Chord.
VECTOR_CIRCLE Circle.
VECTOR_ELLIPSE Ellipse.
VECTOR_ELLIPTICALARC Elliptical arc
VECTOR_LINE Line.
VECTOR_PIE Pie section.
VECTOR_POLYBEZIER Poly Bezier curve.
VECTOR_POLYDRAW Polydraw.
VECTOR_POLYGON Polygon.
VECTOR_POLYLINE Polyline.
VECTOR_RASTER Raster.
VECTOR_RECTANGLE Rectangle.
VECTOR_TEXT Text.
VECTOR_VERTEX 3D vertex in space.
VECTOR_SPLINE Spline object.
VECTOR_HPOLYBEZIER Heterogeneous Poly Bezier

L_INT nId

Object ID: Reserved for internal use.

L_INT nLayerId

Layer ID: Reserved for internal use.

L_INT nGroupId

Group ID: Reserved for internal use.

L_INT nROP

The object's ROP mode. For more information on valid ROP2 codes, refer to your SDK.  

DWORD dwFlags

Flag that indicates the status of the object, can be a combination of the following:

Value Meaning
VECTOR_OBJECT_SELECTED The object is currently selected.
VECTOR_OBJECT_HIDDEN The object is currently hidden.
VECTOR_OBJECT_COMPOSITE This object is part of a group.
VECTOR_OBJECT_2STAGE_RENDERING Forces two-stage rendering for objects. This flag is valid only for VECTORCIRCLE, VECTORELLIPSE, VECTORPIE, VECTORTEXT and VECTORPOLYDRAW, if used in any other object type; it will be ignored by the toolkit.
VECTOR_OBJECT_CLIP Sets the object as a clipping object. Valid only for VECTORPOLYDRAW object.
VECTOR_POLYDRAW_FILL_WINDING Use non-zero mode for filling the polydraw, Valid only for VECTORPOLYDRAW object.
VECTOR_POLYDRAW_FILL_ALTERNATE Use odd-even mode for filling the polydraw, Valid only for VECTORPOLYDRAW object.
VECTOR_OBJECT_ENABLE_TRANSPARENCY Take Bitmap transparency into consideration for Raster objects. Currently working for PNG files only.

DWORD dwTag

User-defined tag.

Comments

pVECTOROBJECT is a pointer to a VECTOROBJECT structure.

Usage

Data Types

Functions

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.