3ds Max C++ API Reference
DrawLineProc Class Reference

This class provides a simplified way to draw a connected series of lines to the GraphicsWindow passed to the class constructor. More...

#include <object.h>

+ Inheritance diagram for DrawLineProc:

Public Member Functions

 DrawLineProc ()
 Constructor. More...
 
 DrawLineProc (GraphicsWindow *g)
 Constructor. More...
 
int proc (Point3 *p, int n) override
 Implemented by the System. More...
 
void SetLineColor (float r, float g, float b) override
 Implemented by the System. More...
 
void SetLineColor (Point3 c) override
 
void Marker (Point3 *p, MarkerType type) override
 
- Public Member Functions inherited from PolyLineProc
virtual ~PolyLineProc ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Detailed Description

This class provides a simplified way to draw a connected series of lines to the GraphicsWindow passed to the class constructor.


See also
Class PolyLineProc, Class GraphicsWindow

Constructor & Destructor Documentation

◆ DrawLineProc() [1/2]

DrawLineProc ( )
inline

Constructor.

The graphics window pointer is set to NULL.

5822 { gw = NULL; }
#define NULL
Definition: autoptr.h:18

◆ DrawLineProc() [2/2]

DrawLineProc ( GraphicsWindow g)
inline

Constructor.

The graphics window pointer is set to g.

5824 { gw = g; }

Member Function Documentation

◆ proc()

int proc ( Point3 p,
int  n 
)
inlineoverridevirtual

Implemented by the System.

Draws a connected series of lines between the points to the GraphicsWindow passed to the class constructor.

Parameters
pArray of vertices of the polyline.
nNumber of vertices in the polyline.

Implements PolyLineProc.

5830 { gw->polyline(n, p, NULL, NULL, 0, NULL); return 0; }
virtual void polyline(int ct, Point3 *xyz, Point3 *rgb, int closed, int *es)=0

◆ SetLineColor() [1/2]

void SetLineColor ( float  r,
float  g,
float  b 
)
inlineoverridevirtual

Implemented by the System.

Sets the color used to draw the lines.

Parameters
rRed component in the range 0.0 to 1.0
gGreen component in the range 0.0 to 1.0
bBlue component in the range 0.0 to 1.0

Reimplemented from PolyLineProc.

5836 {gw->setColor(LINE_COLOR,r,g,b);}
@ LINE_COLOR
Line drawing color.
Definition: GraphicsTypes.h:24
virtual void setColor(ColorType t, float r, float g, float b)=0

◆ SetLineColor() [2/2]

void SetLineColor ( Point3  c)
inlineoverridevirtual

Reimplemented from PolyLineProc.

5837 {gw->setColor(LINE_COLOR,c);}

◆ Marker()

void Marker ( Point3 p,
MarkerType  type 
)
inlineoverridevirtual

Reimplemented from PolyLineProc.

5838 {gw->marker(p,type);}
virtual void marker(Point3 *xyz, MarkerType type)=0