 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
36 cout <<
"Coloring components uniformly: " << color[0] <<
" " <<
37 color[1] <<
" " << color[2] <<
" " << color[3] << endl << endl;
40 for ( comp = m->
comp; comp; comp = comp->
next )
42 for ( link = m->
link; link; link = link->
next )
62 cout <<
"Coloring components by selection: " << color[0] <<
" " <<
63 color[1] <<
" " << color[2] <<
" " << color[3] << endl << endl;
66 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel )
68 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
90 cout <<
"Coloring components by order" << endl << endl;
93 for ( ncomp = 0, comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) ncomp++;
94 for ( i=0, comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
99 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
120 double dmin = 1e30, dmax = -1e30;
126 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
128 if ( dmax < comp->density ) dmax = comp->
density;
133 cout <<
"Coloring components by density (" << dmin <<
" - " << dmax <<
")" << endl << endl;
136 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
140 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
161 double fmin = 1e30, fmax = -1e30;
167 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
168 if ( fmin > comp->
fom ) fmin = comp->
fom;
169 if ( fmax < comp->fom ) fmax = comp->
fom;
174 cout <<
"Coloring components by FOM (" << fmin <<
" - " << fmax <<
")" << endl;
177 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
181 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
208 cout <<
"Coloring selected component types" << endl << endl;
211 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
215 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
237 cout <<
"Coloring based on curvature" << endl << endl;
240 for ( link = m->
link; link; link = link->
next )
if ( link->
sel ) {
243 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
270 cout <<
"Coloring based on chirality." << endl;
273 for ( comp = m->
comp; comp; comp = comp->
next )
if ( comp->
sel ) {
275 if ( h > 0 ) comp->
color = blu;
276 else if ( h < 0 ) comp->
color = red;
282 cout <<
"Number of chiral vertices: " << n << endl << endl;
Header file for reading and writing atomic model files.
int model_color_by_fom(Bmodel *model)
Colors model components by fom.
Classes for color objects.
int component_hand(Bstring &s)
Determines the hand of a component.
int model_color_chiral_vertices(Bmodel *model)
Colors model vertices as a function of chirality.
int model_color_selected(Bmodel *model, RGBA< float > color)
Colors selected model components.
int model_color_by_density(Bmodel *model)
Colors model components by density.
void spectrum(double value, double cmin, double cmax)
Header file for general utilities.
int model_curvature(Bmodel *model)
Calculates the curvature associated with each link.
int model_extended_vertex_types(Bmodel *model)
Determines the vertex type based on adjacent and opposed polygons.
int model_color_selected_types(Bmodel *model, RGBA< float > rgba)
Colors model components by fom.
Library routines used for analysing model component views.
int model_color_uniformly(Bmodel *model, RGBA< float > color)
Colors model components uniformly.
int model_color_by_order(Bmodel *model)
Colors model components in order from red to blue.
Functions to manipulate polyhedral coordinate files.
int model_color_curvature(Bmodel *model)
Colors model vertices and links as a function of curvature.
Library routines used for model processing.
Library routines used for shell model processing.