sonification.dataimport.visbards_resourcetoolkit.model
Interface Glyph


public interface Glyph


Field Summary
static int STYLE_ALL
           
static int STYLE_CUBE
           
static int STYLE_ROMBUS
           
static int STYLE_SPHERE
           
 
Method Summary
 void addArrow()
          Adds an arrow to the glyph.
 java.awt.Color getArrowColor(int idx)
          Returns the color of the arrow.
 float getArrowScale(int idx)
          Returns the scale of an arrow.
 float[] getArrowVector(int idx)
          Returns the vector of an arrow (magnitude is normalized)
 float getArrowWidth(int idx)
          Returns the width of an arrow.
 double[] getLocation()
          Returns the location of the glyph.
 boolean getLowDetail()
          Returns true if the curretly displayed detail is low.
 java.awt.Color getMoldColor()
          Returns the color of the mold.
 float getMoldScale()
          Returns the scale of the mold.
 float getMoldSize()
          Returns the normalized size of the mold.
 int getMoldStyle()
          Returns the style ID of the mold.
 int getNumArrows()
          Returns the number of arrows in the glyph.
 boolean getVisible()
          Returns the current visibility of the glyph.
 void removeArrow(int idx)
          Removes an arrow from the glyph (at specified index)
 void setArrowAntialiasEnable(int idx, boolean enable)
          Enables/disables arrow antialiasing
 void setArrowColor(int idx, java.awt.Color col)
          Changes the color of the arrow.
 void setArrowScale(int idx, float scale)
          Changes the scale of the arrow.
 void setArrowVector(int idx, float[] vec)
          Changes the vector of the arrow.
 void setArrowWidth(int idx, float width)
          Change sthe width of the arrow.
 void setLocation(double[] trans)
          Changes the location of the glyph.
 void setLowDetail(boolean lowDetail)
          Changes the LOD state of the glyph.
 void setMoldColor(java.awt.Color col)
          Changes the color of the mold.
 void setMoldScale(float scale)
          Changes the scale of the mold.
 void setMoldSize(float size)
          Changes the size of the mold.
 void setMoldStyle(int style)
          Changes the style of the mold.
 void setSelected(boolean selected)
          Switch to selected / unselected mold appearance.
 void setVisible(boolean visible)
          Changes the visibility of the glyph.
 

Field Detail

STYLE_CUBE

static final int STYLE_CUBE
See Also:
Constant Field Values

STYLE_SPHERE

static final int STYLE_SPHERE
See Also:
Constant Field Values

STYLE_ROMBUS

static final int STYLE_ROMBUS
See Also:
Constant Field Values

STYLE_ALL

static final int STYLE_ALL
See Also:
Constant Field Values
Method Detail

getMoldScale

float getMoldScale()
Returns the scale of the mold.


getMoldStyle

int getMoldStyle()
Returns the style ID of the mold.


getLocation

double[] getLocation()
Returns the location of the glyph.


getMoldColor

java.awt.Color getMoldColor()
Returns the color of the mold.


getMoldSize

float getMoldSize()
Returns the normalized size of the mold.


getArrowWidth

float getArrowWidth(int idx)
Returns the width of an arrow.


getArrowScale

float getArrowScale(int idx)
Returns the scale of an arrow.


getArrowVector

float[] getArrowVector(int idx)
Returns the vector of an arrow (magnitude is normalized)


getArrowColor

java.awt.Color getArrowColor(int idx)
Returns the color of the arrow.


getLowDetail

boolean getLowDetail()
Returns true if the curretly displayed detail is low.


getVisible

boolean getVisible()
Returns the current visibility of the glyph.


getNumArrows

int getNumArrows()
Returns the number of arrows in the glyph.


setMoldScale

void setMoldScale(float scale)
Changes the scale of the mold.


setMoldStyle

void setMoldStyle(int style)
Changes the style of the mold.


setLocation

void setLocation(double[] trans)
Changes the location of the glyph.


setMoldColor

void setMoldColor(java.awt.Color col)
Changes the color of the mold.


setMoldSize

void setMoldSize(float size)
Changes the size of the mold. (expects normalized val)


setArrowWidth

void setArrowWidth(int idx,
                   float width)
Change sthe width of the arrow.


setArrowScale

void setArrowScale(int idx,
                   float scale)
Changes the scale of the arrow.


setArrowVector

void setArrowVector(int idx,
                    float[] vec)
Changes the vector of the arrow. (exepcts normalized val)


setArrowColor

void setArrowColor(int idx,
                   java.awt.Color col)
Changes the color of the arrow.


setArrowAntialiasEnable

void setArrowAntialiasEnable(int idx,
                             boolean enable)
Enables/disables arrow antialiasing


setLowDetail

void setLowDetail(boolean lowDetail)
Changes the LOD state of the glyph.


setVisible

void setVisible(boolean visible)
Changes the visibility of the glyph.


setSelected

void setSelected(boolean selected)
Switch to selected / unselected mold appearance.


addArrow

void addArrow()
Adds an arrow to the glyph.


removeArrow

void removeArrow(int idx)
Removes an arrow from the glyph (at specified index)