public class VgLinkDescriptor extends VgReferenced
Constructor and Description |
---|
VgLinkDescriptor() |
VgLinkDescriptor(VgLinkDescriptor pOther) |
VgLinkDescriptor(VgPosition pSourcePosition,
VgColor pSourceColor,
VgPosition pTargetPosition,
VgColor pTargetColor,
VgITextureRefPtr pTexture,
float pWidth,
float pTextureRatio,
float pAnimationSpeed) |
Modifier and Type | Method and Description |
---|---|
static VgLinkDescriptorRefPtr |
create()
This static method returns a new heap-allocated descriptor.
|
void |
delete() |
float |
getMAnimationSpeed()
Texture's animation speed.
|
VgColor |
getMSourceColor()
The source point's color, The link's color will be interpolated
linearly from source color.
|
VgPosition |
getMSourcePosition()
The source position.
|
VgColor |
getMTargetColor()
The end's color.
|
VgPosition |
getMTargetPosition()
The 'end' position.
|
VgITextureRefPtr |
getMTexture()
The optional texture to apply to the link's geometry.
|
float |
getMTextureRatio()
Texture's width/height ratio.
|
float |
getMWidth()
Width of the link
|
void |
setMAnimationSpeed(float value)
Texture's animation speed.
|
void |
setMSourceColor(VgColor value)
The source point's color, The link's color will be interpolated
linearly from source color.
|
void |
setMSourcePosition(VgPosition value)
The source position.
|
void |
setMTargetColor(VgColor value)
The end's color.
|
void |
setMTargetPosition(VgPosition value)
The 'end' position.
|
void |
setMTexture(VgITextureRefPtr value)
The optional texture to apply to the link's geometry.
|
void |
setMTextureRatio(float value)
Texture's width/height ratio.
|
void |
setMWidth(float value)
Width of the link
|
getNbReferences, ref, unref
public VgLinkDescriptor()
public VgLinkDescriptor(VgPosition pSourcePosition, VgColor pSourceColor, VgPosition pTargetPosition, VgColor pTargetColor, VgITextureRefPtr pTexture, float pWidth, float pTextureRatio, float pAnimationSpeed)
public VgLinkDescriptor(VgLinkDescriptor pOther)
public void delete()
delete
in class VgReferenced
public static VgLinkDescriptorRefPtr create()
public void setMSourcePosition(VgPosition value)
public VgPosition getMSourcePosition()
public void setMSourceColor(VgColor value)
public VgColor getMSourceColor()
public void setMTargetPosition(VgPosition value)
public VgPosition getMTargetPosition()
public void setMTargetColor(VgColor value)
public VgColor getMTargetColor()
public void setMTexture(VgITextureRefPtr value)
public VgITextureRefPtr getMTexture()
public void setMWidth(float value)
public float getMWidth()
public void setMTextureRatio(float value)
public float getMTextureRatio()
public void setMAnimationSpeed(float value)
public float getMAnimationSpeed()