class primitivef

Declared in: Primitive++.h
Library: libVector++.so
Derived from: public BArchivable

Description

The primitivef class is an abstract data type describing the attributes of graphics objects.

Members

void transform(basisf)
Transforms (all coordinates of) the object with the basis passed.

void translate(vectorf)
Translates (all coordinates of) the object with the vector passed.

void draw()
This is an abstract drawing mechanism. Depending on the output scheme (OpenGL, text-only, proprietary, etc.) the drawing member functions should be different: Typically graphics object sets derived from primitivef should create an empty [ draw(){}; ] function, and have the output-specific procedures overload in the implementations of programs using the object sets.

status_t Archive(BMessage *, bool) All derived Archive functions should overlay a "GType" parameter, typically in all caps, which codes in the name of the graphics object type. Unlike "class", a standard in Be archival schemes, be sure to place the lowest descendant FIRST in the "GType" parameter.