#include <pgFrameStyle.h>
Public Types | |
enum | Type { T_none, T_flat, T_bevel_out, T_bevel_in, T_groove, T_ridge } |
Public Member Functions | |
PGFrameStyle () | |
PGFrameStyle (const PGFrameStyle ©) | |
void | operator= (const PGFrameStyle ©) |
~PGFrameStyle () | |
void | set_type (Type type) |
Sets the basic type of frame. | |
Type | get_type () const |
Returns the basic type of frame. | |
void | set_color (float r, float g, float b, float a) |
Sets the dominant color of the frame. | |
void | set_color (const Colorf &color) |
Sets the dominant color of the frame. | |
const Colorf & | get_color () const |
Returns the dominant color of the frame. | |
void | set_width (float x, float y) |
Sets the width parameter, which has meaning only for certain frame types. | |
void | set_width (const LVecBase2f &width) |
Sets the width parameter, which has meaning only for certain frame types. | |
const LVecBase2f & | get_width () const |
Returns the width parameter, which has meaning only for certain frame types. | |
void | output (ostream &out) const |
bool | xform (const LMatrix4f &mat) |
Applies the indicated transform to the FrameStyle. | |
NodePath | generate_into (const NodePath &parent, const LVecBase4f &frame) |
Generates geometry representing a frame of the indicated size, and parents it to the indicated node, with a scene graph sort order of -1. | |
Private Member Functions | |
PointerTo< PandaNode > | generate_flat_geom (const LVecBase4f &frame) |
Generates the GeomNode appropriate to a T_flat frame. | |
PointerTo< PandaNode > | generate_bevel_geom (const LVecBase4f &frame, bool in) |
Generates the GeomNode appropriate to a T_bevel_in or T_bevel_out frame. | |
PointerTo< PandaNode > | generate_groove_geom (const LVecBase4f &frame, bool in) |
Generates the GeomNode appropriate to a T_groove or T_ridge frame. | |
Private Attributes | |
Type | _type |
Colorf | _color |
LVecBase2f | _width |
|
Definition at line 47 of file pgFrameStyle.h. Referenced by ~PGFrameStyle(). |
|
Definition at line 32 of file pgFrameStyle.I. References INLINE. |
|
Definition at line 47 of file pgFrameStyle.I. |
|
Definition at line 78 of file pgFrameStyle.I. |
|
Generates the GeomNode appropriate to a T_bevel_in or T_bevel_out frame.
Definition at line 226 of file pgFrameStyle.cxx. References _width. |
|
Generates the GeomNode appropriate to a T_flat frame.
Definition at line 184 of file pgFrameStyle.cxx. |
|
Generates the GeomNode appropriate to a T_groove or T_ridge frame.
Definition at line 390 of file pgFrameStyle.cxx. References _width. |
|
Generates geometry representing a frame of the indicated size, and parents it to the indicated node, with a scene graph sort order of -1. The return value is the generated NodePath, if any, or an empty NodePath if nothing is generated. Definition at line 133 of file pgFrameStyle.cxx. References T_ridge. |
|
Returns the dominant color of the frame.
Definition at line 142 of file pgFrameStyle.I. |
|
Returns the basic type of frame.
Definition at line 103 of file pgFrameStyle.I. References _color. |
|
Returns the width parameter, which has meaning only for certain frame types. For instance, this is the width of the bevel for T_bevel_in or T_bevel_out. The units are in screen units. Definition at line 199 of file pgFrameStyle.I. |
|
Definition at line 63 of file pgFrameStyle.I. |
|
Definition at line 65 of file pgFrameStyle.cxx. |
|
Sets the dominant color of the frame.
Definition at line 129 of file pgFrameStyle.I. |
|
Sets the dominant color of the frame.
Definition at line 116 of file pgFrameStyle.I. References INLINE, set_width(), x, and y. Referenced by set_type(). |
|
Sets the basic type of frame.
Definition at line 90 of file pgFrameStyle.I. References Colorf, INLINE, and set_color(). |
|
Sets the width parameter, which has meaning only for certain frame types. For instance, this is the width of the bevel for T_bevel_in or T_bevel_out. The units are in screen units. Definition at line 180 of file pgFrameStyle.I. |
|
Sets the width parameter, which has meaning only for certain frame types. For instance, this is the width of the bevel for T_bevel_in or T_bevel_out. The units are in screen units. Definition at line 161 of file pgFrameStyle.I. Referenced by set_color(). |
|
Applies the indicated transform to the FrameStyle. The return value is true if the frame style is transformed, or false if it was not affected by the transform. Definition at line 84 of file pgFrameStyle.cxx. References _width, T_bevel_in, T_bevel_out, T_flat, T_groove, T_none, and T_ridge. |
|
Definition at line 80 of file pgFrameStyle.h. Referenced by get_type(), and PGFrameStyle(). |
|
Definition at line 79 of file pgFrameStyle.h. Referenced by PGFrameStyle(), and ~PGFrameStyle(). |
|
Definition at line 81 of file pgFrameStyle.h. Referenced by generate_bevel_geom(), generate_groove_geom(), get_color(), output(), PGFrameStyle(), set_color(), and xform(). |