UnityMol  1.0.25beta
UMol.UnityMolAtom Class Reference

Part of the SMCRA data structure, UnityMolAtom stores atom informations of the structure More...

Public Member Functions

 UnityMolAtom (string _name, string _type, Vector3 _pos, float _bfact, long _number, bool _isHET=false)
 UnityMolAtom constructor taking all atom informations as arg, calls setAtomRepresentation() More...
 
void SetResidue (UnityMolResidue r)
 
void SetAtomRepresentationModel (string prefix)
 Set representation regarding the model (OPEP, HiRE-RNA, Martini or all-atom) More...
 
override string ToString ()
 Atom string representation More...
 
UnityMolAtom Clone ()
 Clone a UnityMolAtom Keep modified elements like position / color ... More...
 
UnityMolSelection ToSelection ()
 
int getLightHashCode ()
 

Public Attributes

UnityMolResidue residue
 Store the reference to the residue it belongs to More...
 
string name
 Name of the atom More...
 
Vector3 position
 Position of the atom, model centered on (0,0,0) More...
 
Vector3 oriPosition
 Position of the atom without offset, from the input file More...
 
float bfactor
 Bfactor of the atom More...
 
string type
 Atom type More...
 
bool isHET
 Is this atom a hetero atom More...
 
bool isLigand
 Is this atom a ligand atom More...
 
long number
 Atom number More...
 
float radius
 Representation default radius of the atom (Van der Walls) More...
 
float scale
 Representation scale More...
 
Color color
 Representation color More...
 
string texture
 Representation texture More...
 
int idInAllAtoms = -1
 Index of this atom in the model.allAtoms list More...
 

Properties

Vector4 PositionVec4 [get]
 Position accessor as a Vector4 More...
 
Vector3 curWorldPosition [get]
 
GameObject correspondingGo [get]
 

Detailed Description

Part of the SMCRA data structure, UnityMolAtom stores atom informations of the structure

Constructor & Destructor Documentation

◆ UnityMolAtom()

UMol.UnityMolAtom.UnityMolAtom ( string  _name,
string  _type,
Vector3  _pos,
float  _bfact,
long  _number,
bool  _isHET = false 
)

UnityMolAtom constructor taking all atom informations as arg, calls setAtomRepresentation()

Member Function Documentation

◆ Clone()

UnityMolAtom UMol.UnityMolAtom.Clone ( )

Clone a UnityMolAtom Keep modified elements like position / color ...

◆ getLightHashCode()

int UMol.UnityMolAtom.getLightHashCode ( )

◆ SetAtomRepresentationModel()

void UMol.UnityMolAtom.SetAtomRepresentationModel ( string  prefix)

Set representation regarding the model (OPEP, HiRE-RNA, Martini or all-atom)

◆ SetResidue()

void UMol.UnityMolAtom.SetResidue ( UnityMolResidue  r)

◆ ToSelection()

UnityMolSelection UMol.UnityMolAtom.ToSelection ( )

◆ ToString()

override string UMol.UnityMolAtom.ToString ( )

Atom string representation

Member Data Documentation

◆ bfactor

float UMol.UnityMolAtom.bfactor

Bfactor of the atom

◆ color

Color UMol.UnityMolAtom.color

Representation color

◆ idInAllAtoms

int UMol.UnityMolAtom.idInAllAtoms = -1

Index of this atom in the model.allAtoms list

◆ isHET

bool UMol.UnityMolAtom.isHET

Is this atom a hetero atom

◆ isLigand

bool UMol.UnityMolAtom.isLigand

Is this atom a ligand atom

◆ name

string UMol.UnityMolAtom.name

Name of the atom

◆ number

long UMol.UnityMolAtom.number

Atom number

◆ oriPosition

Vector3 UMol.UnityMolAtom.oriPosition

Position of the atom without offset, from the input file

◆ position

Vector3 UMol.UnityMolAtom.position

Position of the atom, model centered on (0,0,0)

◆ radius

float UMol.UnityMolAtom.radius

Representation default radius of the atom (Van der Walls)

◆ residue

UnityMolResidue UMol.UnityMolAtom.residue

Store the reference to the residue it belongs to

◆ scale

float UMol.UnityMolAtom.scale

Representation scale

◆ texture

string UMol.UnityMolAtom.texture

Representation texture

◆ type

string UMol.UnityMolAtom.type

Atom type

Property Documentation

◆ correspondingGo

GameObject UMol.UnityMolAtom.correspondingGo
get

◆ curWorldPosition

Vector3 UMol.UnityMolAtom.curWorldPosition
get

◆ PositionVec4

Vector4 UMol.UnityMolAtom.PositionVec4
get

Position accessor as a Vector4


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