![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
override void | Init () |
override void | DestroyAll () |
override void | ToggleDistanceCueing (bool enabling) |
override void | SetColor (Color col, List< string > atom, string residue="All", string chain="All") |
override void | SetColor (Color col, int atomNum) |
override void | SetRadii (List< string > atom, string residue="All", string chain="All") |
override void | SetRadii (int id) |
override GameObject | GetBall (int id) |
override void | ResetPositions () |
override void | ResetIMDSimulationPositions () |
override void | DisableRenderers () |
override void | EnableRenderers () |
override void | EnableShadows () |
override void | DisableShadows () |
override void | showHydrogens (bool hide) |
void | ResetBrightness () |
void | ResetTexture () |
void | ResetShrink () |
void | ResetScale () |
override void | ResetRadii () |
void | ResetColors () |
void | ResetShininess () |
void | ApplyTextures () |
void | hideBondForAtom (int idAtom, bool show) |
void | ResetVisibility () |
Public Attributes | |
GameObject[] | hstick_meshes = new GameObject[0] |
List< int > | texturesToUpdate |
Material[] | materialsSticks |
Texture2D[] | texturesSticks |
Dictionary< int, KeyValuePair< int, int > > | coordStickTexture |
![]() | |
bool | isInit = false |
Static Public Attributes | |
static Texture | texture |
static bool | resetBrightness = false |
static bool | resetShrink = false |
static bool | resetScale = false |
static float | scaleSticks = 1.0f |
static bool | resetRadii = false |
static bool | resetColors = false |
static bool | resetTexture = false |
static float | shininess = 0.0f |
static bool | resetShininess = false |
Private Member Functions | |
HStickMeshManager () | |
void | Update () |
Definition at line 9 of file HStickMeshManager.cs.
|
private |
Definition at line 28 of file HStickMeshManager.cs.
void HStickMeshManager.ApplyTextures | ( | ) |
Definition at line 333 of file HStickMeshManager.cs.
Referenced by SugarManager.Hide_No_Sugar_Hyperballs(), ResetColors(), ResetIMDSimulationPositions(), ResetPositions(), ResetRadii(), ResetVisibility(), SugarManager.show_HyperBalls_Sugar(), and showHydrogens().
|
virtual |
Disable and destroys all the Sticks.
Implements GenericManager.
Definition at line 51 of file HStickMeshManager.cs.
References GenericManager.isInit.
Referenced by Molecule.View.DisplayMolecule.DestroyAllAtomsAndBonds().
|
virtual |
Disables the renderers for the entire set of balls and sticks.
Implements GenericManager.
Definition at line 202 of file HStickMeshManager.cs.
|
virtual |
Implements GenericManager.
Definition at line 225 of file HStickMeshManager.cs.
|
virtual |
Enables the renderers for the entire set of balls and sticks.
Implements GenericManager.
Definition at line 211 of file HStickMeshManager.cs.
References UnityMolMain.setCurrentBondManager().
Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().
|
virtual |
Implements GenericManager.
Definition at line 218 of file HStickMeshManager.cs.
|
virtual |
Gets the GameObject from hballs at the position "id".
id | Identifier. |
Implements GenericManager.
Definition at line 131 of file HStickMeshManager.cs.
void HStickMeshManager.hideBondForAtom | ( | int | idAtom, |
bool | show | ||
) |
Definition at line 343 of file HStickMeshManager.cs.
References Molecule.Model.MoleculeModel.bondEPList.
Referenced by SugarManager.Hide_No_Sugar_Hyperballs(), and SugarManager.show_HyperBalls_Sugar().
|
virtual |
Initalizes this instance.
Implements GenericManager.
Definition at line 35 of file HStickMeshManager.cs.
References GenericManager.isInit, and UnityMolMain.setCurrentBondManager().
Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().
void HStickMeshManager.ResetBrightness | ( | ) |
Definition at line 257 of file HStickMeshManager.cs.
References HBallManager.brightness.
Referenced by Update().
void HStickMeshManager.ResetColors | ( | ) |
Definition at line 307 of file HStickMeshManager.cs.
References ApplyTextures(), Molecule.Model.MoleculeModel.atomsColorList, and Molecule.Model.MoleculeModel.bondEPList.
Referenced by Update().
|
virtual |
Resets the positions of all balls.
(Useful after interactive mode)
Implements GenericManager.
Definition at line 169 of file HStickMeshManager.cs.
References ApplyTextures(), Molecule.Model.MoleculeModel.atomsIMDSimulationLocationlist, Molecule.Model.MoleculeModel.bondEPList, and EncodeFloatToColor.EncodeFloatRGBA().
|
virtual |
Resets the positions of all balls.
(Useful after interactive mode)
Implements GenericManager.
Definition at line 138 of file HStickMeshManager.cs.
References ApplyTextures(), Molecule.Model.MoleculeModel.atomsLocationlist, Molecule.Model.MoleculeModel.bondEPList, and EncodeFloatToColor.EncodeFloatRGBA().
Referenced by Molecule3D.Update().
|
virtual |
Implements GenericManager.
Definition at line 282 of file HStickMeshManager.cs.
References ApplyTextures(), Molecule.Model.MoleculeModel.atomsLocalScaleList, Molecule.Model.MoleculeModel.atomsTypelist, Molecule.Model.MoleculeModel.bondEPList, EncodeFloatToColor.EncodeFloatRGBA(), and RepresentationOldGUI.globalRadius.
Referenced by Update().
void HStickMeshManager.ResetScale | ( | ) |
Definition at line 276 of file HStickMeshManager.cs.
References RepresentationOldGUI.linkScale.
Referenced by Update().
void HStickMeshManager.ResetShininess | ( | ) |
Definition at line 326 of file HStickMeshManager.cs.
Referenced by Update().
void HStickMeshManager.ResetShrink | ( | ) |
Definition at line 270 of file HStickMeshManager.cs.
References RepresentationOldGUI.shrink.
Referenced by Update().
void HStickMeshManager.ResetTexture | ( | ) |
Definition at line 262 of file HStickMeshManager.cs.
Referenced by Update().
void HStickMeshManager.ResetVisibility | ( | ) |
Definition at line 362 of file HStickMeshManager.cs.
References ApplyTextures(), and Molecule.Model.MoleculeModel.bondEPList.
Referenced by SugarManager.Hide_No_Sugar_Hyperballs(), and SugarManager.show_HyperBalls_Sugar().
|
virtual |
Sets the color of atoms.
col | Color. |
atom | Atom type. |
residue | Residue. |
chain | Chain. |
Implements GenericManager.
Definition at line 81 of file HStickMeshManager.cs.
|
virtual |
Sets the color of a specific atom.
(Atom selection)
col | Color. |
atomNum | Atom number. |
Implements GenericManager.
Definition at line 94 of file HStickMeshManager.cs.
|
virtual |
Changes the scale of the atoms.
atom | Atom type. |
residue | Residue. |
chain | Chain. |
Implements GenericManager.
Definition at line 109 of file HStickMeshManager.cs.
|
virtual |
Changes the scale for Atom selection.
id | Identifier of the selected atom. |
Implements GenericManager.
Definition at line 118 of file HStickMeshManager.cs.
|
virtual |
Implements GenericManager.
Definition at line 232 of file HStickMeshManager.cs.
References ApplyTextures(), Molecule.Model.MoleculeModel.atomsTypelist, and Molecule.Model.MoleculeModel.bondEPList.
|
virtual |
Implements GenericManager.
Definition at line 59 of file HStickMeshManager.cs.
|
private |
Definition at line 376 of file HStickMeshManager.cs.
References ResetBrightness(), ResetColors(), ResetRadii(), ResetScale(), ResetShininess(), ResetShrink(), and ResetTexture().
Dictionary<int,KeyValuePair<int,int> > HStickMeshManager.coordStickTexture |
Definition at line 15 of file HStickMeshManager.cs.
Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().
GameObject [] HStickMeshManager.hstick_meshes = new GameObject[0] |
Definition at line 11 of file HStickMeshManager.cs.
Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().
Material [] HStickMeshManager.materialsSticks |
Definition at line 13 of file HStickMeshManager.cs.
|
static |
Definition at line 17 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.ResetBrightness(), and HBallManager.ResetBrightness().
|
static |
Definition at line 22 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.SetColor().
|
static |
Definition at line 21 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.ResetRadii().
|
static |
Definition at line 19 of file HStickMeshManager.cs.
Referenced by AtomsGUI.BondScale(), RepresentationOldGUI.HyperballStyle(), and Molecule3D.Update().
|
static |
Definition at line 26 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.ResetShininess(), and HBallManager.ResetShininess().
|
static |
Definition at line 18 of file HStickMeshManager.cs.
Referenced by RepresentationOldGUI.HyperballStyle(), AtomsGUI.Shrink(), and Molecule3D.Update().
|
static |
Definition at line 23 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.SetTexture().
|
static |
Definition at line 20 of file HStickMeshManager.cs.
|
static |
Definition at line 25 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.ResetShininess(), and HBallManager.ResetShininess().
|
static |
Definition at line 16 of file HStickMeshManager.cs.
Referenced by HBallMeshManager.SetTexture().
Texture2D [] HStickMeshManager.texturesSticks |
Definition at line 14 of file HStickMeshManager.cs.
List<int> HStickMeshManager.texturesToUpdate |
Definition at line 12 of file HStickMeshManager.cs.