BALL::VIEW::AddCartoonModel Class Reference
[Model Processors]
#include <BALL/VIEW/MODELS/cartoonModel.h>
List of all members.
Public Types |
enum | Types { STRAND = NUCLEIC_ACID + 1,
HELIX
} |
Public Member Functions |
| AddCartoonModel () |
| Default Constructor.
|
| AddCartoonModel (const AddCartoonModel &cartoon_model) |
| Copy constructor.
|
virtual | ~AddCartoonModel () |
| Destructor.
|
void | setHelixRadius (float radius) |
float | getHelixRadius () const |
void | setArrowWidth (float width) |
float | getArrowWidth () const |
void | setStrandHeight (float heigth) |
float | getStrandHeight () const |
void | setStrandWidth (float w) |
float | getStrandWidth () const |
void | setDNABaseRadius (float r) |
float | getDNABaseRadius () const |
void | setDNAHelixRadius (float r) |
float | getDNAHelixRadius () const |
void | setDNALadderRadius (float r) |
float | getDNALadderRadius () const |
void | setDrawDNAAsLadderModel (bool state) |
bool | drawDNAAsLadderModel () |
void | enableRibbons (bool state) |
bool | ribbonsEnabled () const |
Protected Member Functions |
void | insertTriangle_ (Position v1, Position v2, Position v3, Mesh &mesh) |
void | drawStrand_ (const Vector3 &start, Vector3 &right, Vector3 &hn, float arrow_width, Position &last_vertices, Mesh &mesh) |
void | calculateComplementaryBases_ (const Composite &composite) |
bool | assignNucleotideAtoms_ (Residue &r, Size nr_atoms, String atom_names[10], Atom *atoms[10]) |
void | drawRiboseAtoms_ (const Atom *atom1, const Atom *atom2, const Vector3 &v1, const Vector3 &v2) |
void | calculateModelParts (Protein &protein) |
void | assignModelType (ModelPart &part) |
void | createModel_ (Position set_pos, Position part_pos) |
void | createStrand_ (Position set_pos, Position part_pos) |
void | createHelix_ (Position set_first, Position part_pos) |
void | createTubeHelix_ (Position set_first, Position part_pos) |
void | createWatsonCrickModel_ (Position set_pos, Position part_pos) |
void | createSimpleNucleicAcid_ (Position set_pos, Position part_pos) |
void | renderNucleotideOutline_ (const vector< Vector3 > &positions, Vector3 uv, Mesh &mesh) |
Mesh * | createDoubleRing_ (const vector< Vector3 > &positions) |
Mesh * | create6Ring_ (vector< Vector3 > positions) |
virtual void | refineGuidePoints_ () |
Protected Attributes |
float | helix_radius_ |
float | helix_height_ |
float | helix_width_ |
float | arrow_width_ |
float | strand_width_ |
float | strand_height_ |
float | DNA_helix_radius_ |
float | DNA_ladder_radius_ |
float | DNA_base_radius_ |
float | ribbon_width_ |
float | ribbon_radius_ |
bool | draw_DNA_as_ladder_ |
bool | draw_ribbon_ |
HashMap< const Residue
*, const Residue * > | complementary_bases_ |
Detailed Description
AddCartoonModel class. The class AddCartoonModel is a model processor that creates a Cartoon model through the CA-atoms of the processed Composite object. For information about the processor concept see Processor in the BALL documentation.
Definition at line 28 of file cartoonModel.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
BALL::VIEW::AddCartoonModel::AddCartoonModel |
( |
|
) |
|
BALL::VIEW::AddCartoonModel::AddCartoonModel |
( |
const AddCartoonModel & |
cartoon_model |
) |
|
virtual BALL::VIEW::AddCartoonModel::~AddCartoonModel |
( |
|
) |
[virtual] |
Member Function Documentation
void BALL::VIEW::AddCartoonModel::assignModelType |
( |
ModelPart & |
part |
) |
[protected, virtual] |
bool BALL::VIEW::AddCartoonModel::assignNucleotideAtoms_ |
( |
Residue & |
r, |
|
|
Size |
nr_atoms, |
|
|
String |
atom_names[10], |
|
|
Atom * |
atoms[10] | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::calculateComplementaryBases_ |
( |
const Composite & |
composite |
) |
[protected] |
void BALL::VIEW::AddCartoonModel::calculateModelParts |
( |
Protein & |
protein |
) |
[protected, virtual] |
Mesh* BALL::VIEW::AddCartoonModel::create6Ring_ |
( |
vector< Vector3 > |
positions |
) |
[protected] |
Mesh* BALL::VIEW::AddCartoonModel::createDoubleRing_ |
( |
const vector< Vector3 > & |
positions |
) |
[protected] |
void BALL::VIEW::AddCartoonModel::createHelix_ |
( |
Position |
set_first, |
|
|
Position |
part_pos | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::createModel_ |
( |
Position |
set_pos, |
|
|
Position |
part_pos | |
|
) |
| | [protected, virtual] |
void BALL::VIEW::AddCartoonModel::createSimpleNucleicAcid_ |
( |
Position |
set_pos, |
|
|
Position |
part_pos | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::createStrand_ |
( |
Position |
set_pos, |
|
|
Position |
part_pos | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::createTubeHelix_ |
( |
Position |
set_first, |
|
|
Position |
part_pos | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::createWatsonCrickModel_ |
( |
Position |
set_pos, |
|
|
Position |
part_pos | |
|
) |
| | [protected] |
bool BALL::VIEW::AddCartoonModel::drawDNAAsLadderModel |
( |
|
) |
[inline] |
void BALL::VIEW::AddCartoonModel::drawRiboseAtoms_ |
( |
const Atom * |
atom1, |
|
|
const Atom * |
atom2, |
|
|
const Vector3 & |
v1, |
|
|
const Vector3 & |
v2 | |
|
) |
| | [protected] |
void BALL::VIEW::AddCartoonModel::enableRibbons |
( |
bool |
state |
) |
[inline] |
float BALL::VIEW::AddCartoonModel::getArrowWidth |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getDNABaseRadius |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getDNAHelixRadius |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getDNALadderRadius |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getHelixRadius |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getStrandHeight |
( |
|
) |
const [inline] |
float BALL::VIEW::AddCartoonModel::getStrandWidth |
( |
|
) |
const [inline] |
virtual void BALL::VIEW::AddCartoonModel::refineGuidePoints_ |
( |
|
) |
[protected, virtual] |
void BALL::VIEW::AddCartoonModel::renderNucleotideOutline_ |
( |
const vector< Vector3 > & |
positions, |
|
|
Vector3 |
uv, |
|
|
Mesh & |
mesh | |
|
) |
| | [protected] |
bool BALL::VIEW::AddCartoonModel::ribbonsEnabled |
( |
|
) |
const [inline] |
void BALL::VIEW::AddCartoonModel::setArrowWidth |
( |
float |
width |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setDNABaseRadius |
( |
float |
r |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setDNAHelixRadius |
( |
float |
r |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setDNALadderRadius |
( |
float |
r |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setDrawDNAAsLadderModel |
( |
bool |
state |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setHelixRadius |
( |
float |
radius |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setStrandHeight |
( |
float |
heigth |
) |
[inline] |
void BALL::VIEW::AddCartoonModel::setStrandWidth |
( |
float |
w |
) |
[inline] |
Member Data Documentation