Visit Gigasoft's Web Site
 ProEssentials v11 Help

PEP_structGRAPHANNOTTRIANGLEDATA

Scope

3D Scientific Graph Object.

Type

structure

Default

NA

Custom

NA

OCX / VCL

NA

 

Purpose

This property is used to add polygon data to a 3D chart for any PolyMode.  It's used similar to PEP_structTRIANGLEDATA except annotations can be added to any chart.  GraphAnnotPolyDataPlotMethod can be used to control the polygon colors 

 

The PEP_structGRAPHANNOTTRIANGLEDATA property uses the TriangleData structure as follows

 

typedef struct

{

   float  X;

   float  Y;

   float  Z;

} Point3D;

 

typedef struct

{

   Point3D Vertices[4];

   DWORD  PolyColor;        // ARGB Value

} TriangleData; // 40 byte structure

 

Comments

Use PEvset to pass triangledata into object.  Instead of passing all the triangles, one can use PEP_structGRAPHANNOTTRIANGLEDATAPTR to share the pointer to your apps data.  If using the zero-copy pointer, be sure your triangle memory lifecycle is maintained along with the chart.  For .Net, pin the memory if less than 100K bytes. 

 

Within the demo, see examples 415, 406.

 

Refer to Chapter 7 and the example code on more information on using this property.