![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Static Public Member Functions | |
static void | SetTitle (string s) |
static bool | SetTitleExit (string s) |
static bool | InDeadZone (Rect rect, Vector3 mpos) |
static void | MainFun (int a) |
![]() | |
static void | CreateColorPicker (ColorObject col, string title, List< string > atomTarget, string residueTarget="All", string chainTarget="All") |
static void | LightStop () |
static float | LabelSlider (float sliderValue, float sliderMinValue, float sliderMaxValue, string labelText, string toolTip, bool enable, int sliderwidth, int labelwidth=100, bool newLine=false) |
static void | SetPanels () |
static void | SetAtomsExtended () |
static void | SetResidues () |
static void | SetChains () |
static string | queryBestTextures () |
Static Private Member Functions | |
static Texture2D | MakeButtonTex (Texture2D tex) |
Additional Inherited Members | |
![]() | |
GUIMoleculeController () | |
void | CameraStop () |
void | DisplayGUI () |
void | SetAdvMenu () |
void | SetGuidedMenu () |
void | SetAtomMenu () |
void | SetSecStructMenu () |
void | SetAtomType () |
void | SetBfactorMenu () |
void | SetBondType () |
void | setSugarMenu () |
void | setSugarRibbonsTuneMenu () |
void | setColorTuneMenu () |
void | SetCubeLineBond () |
void | SetEffectType () |
void | SetFieldMenu () |
void | SetSurfaceMenu () |
void | SetHydroMenu () |
void | SetHyperBall () |
void | SetSurfaceTexture () |
void | SetSurtfaceMobileCut () |
void | SetSurfaceCut () |
void | SetBackGroundType () |
void | SetMetaphorType () |
void | SetArtemisMenu () |
void | SetHiRERNAMenu () |
void | SetWebContestMenu () |
void | MinLoadTypeGUIAtom (int b) |
void | RenderHelp () |
![]() | |
Texture2D | aTexture |
![]() | |
static bool | onlyBestTextures = true |
static int | texture_set =0 |
static bool | HYPERBALLSDEFAULT = true |
static float | minOrthoSize = 1f |
static float | maxOrthoSize = 60f |
static float | orthoSize = 10f |
static bool | showOpenMenu = true |
static bool | showReactionMenu = false |
static bool | showAnimationMenu = false |
static bool | showAtomMenu = false |
static bool | showSetAtomScales = false |
static bool | showResiduesMenu = false |
static bool | showAtomsExtendedMenu = false |
static bool | showChainsMenu = false |
static bool | showPanelsMenu = false |
static bool | showArtemisMenu = false |
static bool | showHiRERNAMenu = false |
static bool | showWebContestMenu = false |
static bool | showTestMenu = false |
static bool | toggle_HELP = false |
static bool | toggle_INFOS = true |
static bool | toggle_VE_COPYR = true |
static bool | toggle_HB_SANIM = false |
static float | hb_sanim = 0.7f |
static float | hb_ssign = 1.0f |
static bool | toggle_HB_RANIM = false |
static float | hb_ranim = 0.4f |
static float | hb_rsign = 1.0f |
static float | depthfactor = -1.0f |
static float | drag = 0.6f |
static float | spring = 5 |
static float | fov_angle = 60f |
static float | previous_angle = 60f |
static bool | toggle_HB_TRANS = true |
static bool | toggle_NA_INTERACTIVE = false |
static bool | toggle_NA_HIDE = false |
static bool | toggle_NA_SWITCH = false |
static bool | toggle_NA_HBALLSMOOTH = false |
static bool | LOD_INITIALIZED = false |
static bool | toggle_NA_MEASURE = false |
static bool | toggle_NA_CLICK = false |
static bool | toggle_NA_MAXCAM = true |
static bool | toggle_NA_AUTOMOVE = false |
static bool | toggle_NA_CAMLOCK = false |
static bool | toggle_LIGHTCAM = false |
static bool | toggle_MESHCOMBINE = false |
static GameObject | scenecontroller = null |
static Molecule3D | Molecule3DComp = null |
static bool | toggle_DISTANCE_CUEING = false |
static bool | toggle_HIDE_HYDROGEN =false |
static bool | distanceCueingEnabled = false |
static bool | toggle_IMD = false |
static bool | toggleIMDTotalEnergy = false |
static bool | toggleIMDHBondsEnergy = false |
static bool | toggleIMDStackingEnergy = false |
static bool | showGrayColor = false |
static bool | showSurfaceButton = false |
static bool | FileBrowser_show = false |
static bool | FileBrowser_show2 = false |
static ImprovedFileBrowser | m_fileBrowser |
static string | m_textPath |
static Camera | mainCamera |
static float | backgroundColorRed = 0.0f |
static float | backgroundColorGreen = 0.0f |
static float | backgroundColorBlue = 0.0f |
static ColorObject | BackgroundColor = new ColorObject(Color.black) |
static ColorPicker | m_colorPicker = null |
static Material | electricsymbol = (Material)Resources.Load ("Materials/electricparticle") |
![]() | |
static Quaternion | NA_SCCROT = new Quaternion (-0.1f, 0.1f, 0.0f, -1.0f) |
static Vector3 | NA_SCCPOS = new Vector3 (0.4f, 1.8f, -12.0f) |
static bool | showAtoms = true |
static float | prevRadius |
static GUIStyle | m_centredText |
![]() | |
static GUIStyle | CentredText [get] |
Definition at line 77 of file LoadTypeGUI.cs.
|
static |
Returns true if the mouse cursor is lower than the Window title.
This function assumes that the cursor is contained in the window, it is not to be called in any other case.
rect | This is the rectangle representing the window. |
mpos | This is the flipped mouse position. I don't know why, but Unity returns a Vector3 for this, not a Vector2. And to make things even more fun, the mouse starts at 0,0 in the bottom left corner and increases to maxWidth,maxHeight in the top right corner, while rectangles start at 0,0 in the top left corner, and increase to maxW,maxH in the bottom right corner. So it's a Vector3, and the y axis must be flipped before mpos is fed to this function. |
Definition at line 242 of file LoadTypeGUI.cs.
References SurfaceOldGUI.cutPlaneIsDraggable.
Referenced by SurfaceOldGUI.MoveCutPlane().
|
static |
Defines the main menu of the GUI.
Controls the main menus.
a | Window identifier. |
Definition at line 262 of file LoadTypeGUI.cs.
References UI.UIData.atomtype, maxCamera.automove, Molecule.Model.MoleculeModel.dxFileExists, ColorPicker.enabled, ElectrostaticManager.fieldLineColorGradient, UI.UIData.hasMoleculeDisplay, UI.UIData.lightStop, UI.GUIMoleculeController.m_colorPicker, UI.GUIDisplay.m_texture, UI.GUIMoleculeController.mainCamera, UI.GUIMoleculeController.NA_SCCPOS, UI.GUIMoleculeController.NA_SCCROT, Molecule.Model.MoleculeModel.newtooltip, SurfaceOldGUI.openCloseSurfaceMenu(), HBallManager.ResetPositions(), UI.GUIMoleculeController.scenecontroller, AdvancedOptionsOldGUI.showAdvMenu, UI.GUIMoleculeController.showAnimationMenu, UI.GUIMoleculeController.showArtemisMenu, UI.GUIMoleculeController.showAtomMenu, UI.GUIMoleculeController.showAtomsExtendedMenu, AdvancedOptionsOldGUI.showBackgroundType, SurfaceOldGUI.showBfactorMenu, UI.GUIMoleculeController.showChainsMenu, ElectrostaticOldGUI.showElectrostaticsMenu, UI.GUIMoleculeController.showGrayColor, GuidedNavigationOldGUI.showGuidedMenu, UI.GUIMoleculeController.showHiRERNAMenu, UI.GUIMoleculeController.showOpenMenu, UI.GUIMoleculeController.showPanelsMenu, UI.GUIMoleculeController.showReactionMenu, UI.GUIMoleculeController.showResiduesMenu, SecondaryStructureOldGUI.showSecStructMenu, UI.GUIMoleculeController.showSetAtomScales, SugarOldGUI.showSugarChainMenu, UI.GUIMoleculeController.showSurfaceButton, SurfaceOldGUI.showSurfaceCut, SurfaceOldGUI.showSurfaceMenu, SurfaceOldGUI.showSurfaceMobileCut, SurfaceOldGUI.showSurfaceTexture, UI.GUIMoleculeController.showTestMenu, UI.GUIMoleculeController.showWebContestMenu, maxCamera.ToCenter(), UI.GUIMoleculeController.toggle_LIGHTCAM, UI.GUIMoleculeController.toggle_NA_AUTOMOVE, UI.GUIMoleculeController.toggle_NA_MAXCAM, and UI.GUIMoleculeController.toggle_NA_SWITCH.
Referenced by UI.GUIMoleculeController.DisplayGUI().
|
staticprivate |
Creates a new texture of the appropriate size for a button, unless it already exists.
Used by AdvOptions.
Definition at line 213 of file LoadTypeGUI.cs.
|
static |
Sets the title of the current window.
The FlexibleSpace() function around the Label is here for centering.
s | The title you wish to set for the window. String. |
Definition at line 129 of file LoadTypeGUI.cs.
Referenced by RepresentationOldGUI.AtomStyle(), RepresentationOldGUI.Bond(), RepresentationOldGUI.CubeLineBond(), RepresentationOldGUI.HyperballStyle(), SurfaceOldGUI.MoveCutPlane(), SurfaceOldGUI.SurfaceMobileCut(), and SurfaceOldGUI.SurfaceParams().
|
static |
This is a somewhat odd but very convenient function.
When called by a function that defines the contents of a window, it creates a loosely centered label from its string argument, that basically acts as a title. It also creates a little 'close' button aligned to the right, and returns false if it was pressed, true otherwise. Therefore, the function both creates a title and determines whether the window must be kept open.
s | A string, the title to set for the current window. |
Definition at line 153 of file LoadTypeGUI.cs.
Referenced by AdvancedOptionsOldGUI.AdvOptions(), ArtemisOldGUI.ArtemisMenu(), RepresentationOldGUI.AtomMenu(), UI.GUIDisplay.AtomScales(), UI.GUIDisplay.AtomsExtendedMenu(), AdvancedOptionsOldGUI.Background(), UI.GUIDisplay.ChainsMenu(), SugarOldGUI.ColorTuneMenu(), AdvancedOptionsOldGUI.Effects(), ElectrostaticOldGUI.Electrostatics(), GuidedNavigationOldGUI.GuidedOptions(), HiRERNAContestOldGUI.HiRERNAContestMenu(), HiRERNAOldGUI.HiRERNAMenu(), SurfaceOldGUI.HydroMenu(), RepresentationOldGUI.Metaphor(), UI.GUIDisplay.PanelsMenu(), UI.GUIDisplay.ResiduesMenu(), SecondaryStructureOldGUI.SecStructMenu(), SugarOldGUI.SugarM(), SugarOldGUI.SugarRibbonsTune(), SurfaceOldGUI.Surface(), SurfaceOldGUI.SurfaceCut(), and SurfaceOldGUI.textureMenu().