Graph Maker
WMG_Link Class Reference

The link class primarily used for the lines in line series in axis graphs. More...

Inheritance diagram for WMG_Link:
WMG_GUI_Functions WMG_Text_Functions

Public Member Functions

void Setup (GameObject fromNode, GameObject toNode, int linkId, bool repos)
 Initializes this link, and sets its nodes. More...
 
virtual void Reposition ()
 Reposition this link based on the positions of its from and to nodes. More...
 
- Public Member Functions inherited from WMG_GUI_Functions
void SetActive (GameObject obj, bool state)
 
bool activeInHierarchy (GameObject obj)
 
void SetActiveAnchoredSprite (GameObject obj, bool state)
 
void SetActiveImage (GameObject obj, bool state)
 
Texture2D getTexture (GameObject obj)
 
void setTexture (GameObject obj, Sprite sprite)
 
void changeSpriteFill (GameObject obj, float fill)
 
void changeRadialSpriteRotation (GameObject obj, Vector3 newRot)
 
void changeSpriteColor (GameObject obj, Color aColor)
 
void changeSpriteAlpha (GameObject obj, float alpha)
 
float getSpriteAlpha (GameObject obj)
 
void changeSpriteWidth (GameObject obj, int aWidth)
 
void changeSpriteHeight (GameObject obj, int aHeight)
 
void setTextureMaterial (GameObject obj, Material aMat)
 
Material getTextureMaterial (GameObject obj)
 
void changeSpriteSize (GameObject obj, int aWidth, int aHeight)
 
void changeSpriteSizeFloat (GameObject obj, float aWidth, float aHeight)
 
Vector2 getSpriteSize (GameObject obj)
 
void changeBarWidthHeight (GameObject obj, int aWidth, int aHeight)
 
float getSpriteWidth (GameObject obj)
 
float getSpriteHeight (GameObject obj)
 
float getTextWidth (GameObject obj)
 
float getTextHeight (GameObject obj)
 
void forceUpdateText (GameObject obj)
 
void setAnchor (GameObject go, Vector2 anchor, Vector2 pivot, Vector2 anchoredPosition)
 
void setAnchoredPosition (GameObject go, Vector2 anchoredPosition)
 
void stretchToParent (GameObject go)
 
bool rectIntersectRect (GameObject r1, GameObject r2)
 
void getRectDiffs (GameObject child, GameObject container, ref Vector2 xDif, ref Vector2 yDif)
 
float getSpritePositionX (GameObject obj)
 
float getSpritePositionY (GameObject obj)
 
Vector2 getSpritePositionXY (GameObject obj)
 
float getSpritePivotTopToBot (GameObject obj)
 
Vector3 getPositionRelativeTransform (GameObject obj, GameObject relative)
 
void changePositionByRelativeTransform (GameObject obj, GameObject relative, Vector2 delta)
 
void changeSpritePositionTo (GameObject obj, Vector3 newPos)
 
void changeSpritePositionToX (GameObject obj, float newPos)
 
void changeSpritePositionToY (GameObject obj, float newPos)
 
Vector2 getChangeSpritePositionTo (GameObject obj, Vector2 newPos)
 
void changeSpritePositionRelativeToObjBy (GameObject obj, GameObject relObj, Vector3 changeAmt)
 
void changeSpritePositionRelativeToObjByX (GameObject obj, GameObject relObj, float changeAmt)
 
void changeSpritePositionRelativeToObjByY (GameObject obj, GameObject relObj, float changeAmt)
 
Vector2 getSpritePivot (GameObject obj)
 
void changeSpriteParent (GameObject child, GameObject parent)
 
void getFirstCanvasOnSelfOrParent (Transform trans, ref Canvas canv)
 
void addRaycaster (GameObject obj)
 
void setAsNotInteractible (GameObject obj)
 
void bringSpriteToFront (GameObject obj)
 
void sendSpriteToBack (GameObject obj)
 
- Public Member Functions inherited from WMG_Text_Functions
void changeLabelText (GameObject obj, string aText)
 
void changeLabelFontSize (GameObject obj, int newFontSize)
 
Vector2 getTextSize (GameObject obj)
 
void changeSpritePivot (GameObject obj, WMGpivotTypes theType)
 
void changeLabelColor (GameObject obj, Color newColor)
 
void changeLabelFontStyle (GameObject obj, FontStyle newFontStyle)
 
void changeLabelFont (GameObject obj, Font newFont)
 

Public Attributes

int id
 The unique id of this link per instance of WMG_Graph_Manager. More...
 
GameObject fromNode
 The node from which this link originates. More...
 
GameObject toNode
 To node to which this link terminates. More...
 
GameObject objectToScale
 Reference to the object that should change scale for this link, typically it is the same object to which this link is attached. More...
 
GameObject objectToColor
 Reference to the object that should change color for this link, could be a separate child object of this link. More...
 
GameObject objectToLabel
 Reference to the object that should change label for this link, could be a separate child object of this link. More...
 
bool weightIsLength
 
bool updateLabelWithLength
 
bool isSelected = false
 
bool wasSelected = false
 
float weight
 

Additional Inherited Members

- Public Types inherited from WMG_Text_Functions
enum  WMGpivotTypes {
  WMGpivotTypes.Bottom, WMGpivotTypes.BottomLeft, WMGpivotTypes.BottomRight, WMGpivotTypes.Center,
  WMGpivotTypes.Left, WMGpivotTypes.Right, WMGpivotTypes.Top, WMGpivotTypes.TopLeft,
  WMGpivotTypes.TopRight
}
 

Detailed Description

The link class primarily used for the lines in line series in axis graphs.

Member Function Documentation

◆ Reposition()

virtual void WMG_Link.Reposition ( )
virtual

Reposition this link based on the positions of its from and to nodes.

◆ Setup()

void WMG_Link.Setup ( GameObject  fromNode,
GameObject  toNode,
int  linkId,
bool  repos 
)

Initializes this link, and sets its nodes.

Parameters
fromNodeFrom node.
toNodeTo node.
linkIdLink identifier.
reposIf set to true repos.

Member Data Documentation

◆ fromNode

GameObject WMG_Link.fromNode

The node from which this link originates.

◆ id

int WMG_Link.id

The unique id of this link per instance of WMG_Graph_Manager.

◆ isSelected

bool WMG_Link.isSelected = false

◆ objectToColor

GameObject WMG_Link.objectToColor

Reference to the object that should change color for this link, could be a separate child object of this link.

◆ objectToLabel

GameObject WMG_Link.objectToLabel

Reference to the object that should change label for this link, could be a separate child object of this link.

◆ objectToScale

GameObject WMG_Link.objectToScale

Reference to the object that should change scale for this link, typically it is the same object to which this link is attached.

◆ toNode

GameObject WMG_Link.toNode

To node to which this link terminates.

◆ updateLabelWithLength

bool WMG_Link.updateLabelWithLength

◆ wasSelected

bool WMG_Link.wasSelected = false

◆ weight

float WMG_Link.weight

◆ weightIsLength

bool WMG_Link.weightIsLength

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