com.visioglobe.libVisioDevKit
Class VgColor

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgColor

public class VgColor
extends java.lang.Object

This struct represents a color. It is defined using four values: The first three values represent red, green and blue (respectively) following the additive color model and the last value is for alpha (transparency). Those values can be set in the [0.0, 1.0] range. A value of 1.0 for alpha means that the color is completely opaque, while a value of 0.0 means the color is completely transparent.

Class:
VgEngine::VgColor

Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
VgColor()
           
VgColor(float pRed)
           
VgColor(float pRed, float pGreen)
           
VgColor(float pRed, float pGreen, float pBlue)
           
VgColor(float pRed, float pGreen, float pBlue, float pAlpha)
           
VgColor(long cPtr, boolean cMemoryOwn)
           
VgColor(VgColor pColor)
           
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgColor obj)
           
 float getMAlpha()
          The alpha component of the color.
 float getMBlue()
          The blue component of the color.
 float getMGreen()
          The green component of the color.
 float getMRed()
          The red component of the color.
 void setMAlpha(float value)
          The alpha component of the color.
 void setMBlue(float value)
          The blue component of the color.
 void setMGreen(float value)
          The green component of the color.
 void setMRed(float value)
          The red component of the color.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

VgColor

public VgColor(long cPtr,
               boolean cMemoryOwn)

VgColor

public VgColor(float pRed,
               float pGreen,
               float pBlue,
               float pAlpha)

VgColor

public VgColor(float pRed,
               float pGreen,
               float pBlue)

VgColor

public VgColor(float pRed,
               float pGreen)

VgColor

public VgColor(float pRed)

VgColor

public VgColor()

VgColor

public VgColor(VgColor pColor)
Method Detail

getCPtr

public static long getCPtr(VgColor obj)

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

delete

public void delete()

setMRed

public void setMRed(float value)
The red component of the color.


getMRed

public float getMRed()
The red component of the color.


setMGreen

public void setMGreen(float value)
The green component of the color.


getMGreen

public float getMGreen()
The green component of the color.


setMBlue

public void setMBlue(float value)
The blue component of the color.


getMBlue

public float getMBlue()
The blue component of the color.


setMAlpha

public void setMAlpha(float value)
The alpha component of the color.


getMAlpha

public float getMAlpha()
The alpha component of the color.


VisioDevKit 2.0, Visioglobe® 2013