Bsoft object

struct Bcomponent

Source:

include/rwmodel.h

Description:

Model component parameter structure.

Features:

Type which must be a valid component type.
Location.
Orientation.
Vector for use as force or displacement.
Radius.
Color.
Figure-of-merit.
Selection.

Code:

struct Bcomponent {
Bcomponent* next; // Next component in list
Bstring id; // Component identifier
Bcomptype* type; // Component type pointer
Bcomponent* link[MAXLINK]; // Links to other components
Bcomponent* neighbor[MAXLINK]; // Neighboring components
int flag[MAXLINK]; // Flags for connectors
Vector3 loc; // Location coordinates (angstroms)
View view; // View: 3-value unit vector and angle (radians)
Vector3 vec; // Vector for use as force or displacement
Vector3 vel; // Vector for use as velocity
float radius; // Display radius
float color[4]; // RGBA color
float density; // Component density or intensity
float fom; // Figure-of-merit
int sel; // Selection flag
} ;

Other objects included:

struct Bcomponent
struct Bcomptype
class Bstring


Generated by bdoc.pl on Thu Dec 16 10:52:55 2010


Back to the Bsoft home