Bsoft 2.1.4
Bernard's software package
Bmodel Class Reference

#include <rwmodel.h>

Public Member Functions

 Bmodel ()
 
 Bmodel (string s)
 
 Bmodel (Bstring s)
 
 Bmodel (long i)
 
void comment (string s)
 
string & comment ()
 
void identifier (string s)
 
void identifier (Bstring s)
 
string & identifier ()
 
void model_type (string s)
 
string & model_type ()
 
void mapfile (string s)
 
string & mapfile ()
 
void maskfile (string s)
 
string & maskfile ()
 
void image_number (long i)
 
long image_number ()
 
void symmetry (string s)
 
string & symmetry ()
 
void handedness (long i)
 
long handedness ()
 
void FOM (double d)
 
double FOM ()
 
void select (long i)
 
long select ()
 
long select_increment ()
 
long select_all ()
 
void deselect_all ()
 
long select_within_bounds (Vector3< double > &start, Vector3< double > &end)
 
Vector3< double > minimum ()
 
Vector3< double > maximum ()
 
Bmodeladd (string s)
 
Bmodeladd (long i)
 
Bmodeladd (Bmodel *model)
 
Bmodelfind (string s)
 
Bmodelcopy ()
 
Bcomptypecopy_types ()
 
Bcomponentcopy_components ()
 
Blinkcopy_links (Bcomponent *c)
 
Bpolygoncopy_polygons (Bcomponent *c)
 
long count ()
 
Bcomponentadd_component (string s)
 
Bcomponentadd_component (long i)
 
Bcomponentadd_component (Bcomponent *c)
 
Bcomponentfind_component (string s)
 
Blinkfind_link (Bcomponent *c1, Bcomponent *c2)
 
Blinkfind_link (string s1, string s2)
 
float component_count ()
 
float component_count_selected ()
 
long set_component_radius (double r)
 
long set_component_density (double d)
 
long set_component_fom (double f)
 
Bcomponentclosest_component (Vector3< double > loc)
 
void calculate_normals ()
 
long set_type_filenames (string &fn)
 
Bcomptypeadd_type (string s)
 
Bcomptypeadd_type (Bstring s)
 
Bcomptypeadd_type (long i)
 
Bcomptypeadd_type (string fn, long img_num)
 
Bcomptypeadd_type (string s, string fn, long img_num)
 
Bcomptypeadd_type (Bcomptype *ct)
 
Bcomptypefind_type (string s)
 
long component_type_count ()
 
long component_type_count_selected ()
 
void update_type_counts ()
 
void update_component_types (map< string, Bcomptype > &types)
 
Bgroupadd_group (string s)
 
long link_count ()
 
long polygon_count ()
 
bool check ()
 
void calculate_bounds ()
 
Vector3< double > center_of_coordinates ()
 
Vector3< double > center_of_mass ()
 
long shift (Vector3< double > t)
 
long trim (Vector3< double > b)
 
void show_components ()
 
void show_links ()
 
vector< Bcomponent * > component_array ()
 

Public Attributes

Bmodelnext
 
Bcomptypetype
 
Bcomponentcomp
 
Blinklink
 
Bpolygonpoly
 
Bgroupgroup
 

Constructor & Destructor Documentation

◆ Bmodel() [1/4]

Bmodel::Bmodel ( )
inline

◆ Bmodel() [2/4]

Bmodel::Bmodel ( string  s)
inline

◆ Bmodel() [3/4]

Bmodel::Bmodel ( Bstring  s)
inline

◆ Bmodel() [4/4]

Bmodel::Bmodel ( long  i)
inline

Member Function Documentation

◆ add() [1/3]

Bmodel * Bmodel::add ( Bmodel model)
inline

◆ add() [2/3]

Bmodel * Bmodel::add ( long  i)
inline

◆ add() [3/3]

Bmodel * Bmodel::add ( string  s)
inline

◆ add_component() [1/3]

Bcomponent * Bmodel::add_component ( Bcomponent c)
inline

◆ add_component() [2/3]

Bcomponent * Bmodel::add_component ( long  i)
inline

◆ add_component() [3/3]

Bcomponent * Bmodel::add_component ( string  s)
inline

◆ add_group()

Bgroup * Bmodel::add_group ( string  s)
inline

◆ add_type() [1/6]

Bcomptype * Bmodel::add_type ( Bcomptype ct)
inline

◆ add_type() [2/6]

Bcomptype * Bmodel::add_type ( Bstring  s)
inline

◆ add_type() [3/6]

Bcomptype * Bmodel::add_type ( long  i)
inline

◆ add_type() [4/6]

Bcomptype * Bmodel::add_type ( string  fn,
long  img_num 
)
inline

◆ add_type() [5/6]

Bcomptype * Bmodel::add_type ( string  s)
inline

◆ add_type() [6/6]

Bcomptype * Bmodel::add_type ( string  s,
string  fn,
long  img_num 
)
inline

◆ calculate_bounds()

void Bmodel::calculate_bounds ( )
inline

◆ calculate_normals()

void Bmodel::calculate_normals ( )
inline

◆ center_of_coordinates()

Vector3< double > Bmodel::center_of_coordinates ( )
inline

◆ center_of_mass()

Vector3< double > Bmodel::center_of_mass ( )
inline

◆ check()

bool Bmodel::check ( )
inline

◆ closest_component()

Bcomponent * Bmodel::closest_component ( Vector3< double >  loc)
inline

◆ comment() [1/2]

string & Bmodel::comment ( )
inline

◆ comment() [2/2]

void Bmodel::comment ( string  s)
inline

◆ component_array()

vector< Bcomponent * > Bmodel::component_array ( )
inline

◆ component_count()

float Bmodel::component_count ( )
inline

◆ component_count_selected()

float Bmodel::component_count_selected ( )
inline

◆ component_type_count()

long Bmodel::component_type_count ( )
inline

◆ component_type_count_selected()

long Bmodel::component_type_count_selected ( )
inline

◆ copy()

Bmodel * Bmodel::copy ( )
inline

◆ copy_components()

Bcomponent * Bmodel::copy_components ( )
inline

◆ copy_links()

Blink * Bmodel::copy_links ( Bcomponent c)
inline

◆ copy_polygons()

Bpolygon * Bmodel::copy_polygons ( Bcomponent c)
inline

◆ copy_types()

Bcomptype * Bmodel::copy_types ( )
inline

◆ count()

long Bmodel::count ( )
inline

◆ deselect_all()

void Bmodel::deselect_all ( )
inline

◆ find()

Bmodel * Bmodel::find ( string  s)
inline

◆ find_component()

Bcomponent * Bmodel::find_component ( string  s)
inline

◆ find_link() [1/2]

Blink * Bmodel::find_link ( Bcomponent c1,
Bcomponent c2 
)
inline

◆ find_link() [2/2]

Blink * Bmodel::find_link ( string  s1,
string  s2 
)
inline

◆ find_type()

Bcomptype * Bmodel::find_type ( string  s)
inline

◆ FOM() [1/2]

double Bmodel::FOM ( )
inline

◆ FOM() [2/2]

void Bmodel::FOM ( double  d)
inline

◆ handedness() [1/2]

long Bmodel::handedness ( )
inline

◆ handedness() [2/2]

void Bmodel::handedness ( long  i)
inline

◆ identifier() [1/3]

string & Bmodel::identifier ( )
inline

◆ identifier() [2/3]

void Bmodel::identifier ( Bstring  s)
inline

◆ identifier() [3/3]

void Bmodel::identifier ( string  s)
inline

◆ image_number() [1/2]

long Bmodel::image_number ( )
inline

◆ image_number() [2/2]

void Bmodel::image_number ( long  i)
inline

◆ link_count()

long Bmodel::link_count ( )
inline

◆ mapfile() [1/2]

string & Bmodel::mapfile ( )
inline

◆ mapfile() [2/2]

void Bmodel::mapfile ( string  s)
inline

◆ maskfile() [1/2]

string & Bmodel::maskfile ( )
inline

◆ maskfile() [2/2]

void Bmodel::maskfile ( string  s)
inline

◆ maximum()

Vector3< double > Bmodel::maximum ( )
inline

◆ minimum()

Vector3< double > Bmodel::minimum ( )
inline

◆ model_type() [1/2]

string & Bmodel::model_type ( )
inline

◆ model_type() [2/2]

void Bmodel::model_type ( string  s)
inline

◆ polygon_count()

long Bmodel::polygon_count ( )
inline

◆ select() [1/2]

long Bmodel::select ( )
inline

◆ select() [2/2]

void Bmodel::select ( long  i)
inline

◆ select_all()

long Bmodel::select_all ( )
inline

◆ select_increment()

long Bmodel::select_increment ( )
inline

◆ select_within_bounds()

long Bmodel::select_within_bounds ( Vector3< double > &  start,
Vector3< double > &  end 
)
inline

◆ set_component_density()

long Bmodel::set_component_density ( double  d)
inline

◆ set_component_fom()

long Bmodel::set_component_fom ( double  f)
inline

◆ set_component_radius()

long Bmodel::set_component_radius ( double  r)
inline

◆ set_type_filenames()

long Bmodel::set_type_filenames ( string &  fn)
inline

◆ shift()

long Bmodel::shift ( Vector3< double >  t)
inline

◆ show_components()

void Bmodel::show_components ( )
inline

◆ show_links()

void Bmodel::show_links ( )
inline

◆ symmetry() [1/2]

string & Bmodel::symmetry ( )
inline

◆ symmetry() [2/2]

void Bmodel::symmetry ( string  s)
inline

◆ trim()

long Bmodel::trim ( Vector3< double >  b)
inline

◆ update_component_types()

void Bmodel::update_component_types ( map< string, Bcomptype > &  types)
inline

◆ update_type_counts()

void Bmodel::update_type_counts ( )
inline

Member Data Documentation

◆ comp

Bcomponent* Bmodel::comp

◆ group

Bgroup* Bmodel::group

◆ link

Blink* Bmodel::link

◆ next

Bmodel* Bmodel::next

◆ poly

Bpolygon* Bmodel::poly

◆ type

Bcomptype* Bmodel::type

The documentation for this class was generated from the following file: