com.aspose.slides
Class ThreeDFormat

java.lang.Object
  extended by com.aspose.slides.ThreeDFormat

public final class ThreeDFormat
extends java.lang.Object

Represents 3D formatting of a shape.


Method Summary
 float getAmbientLightIntensity()
           Returns or sets the ambient light intensity.
 float getAngleX()
           Returns or sets rotation angle around X axis.
 float getAngleY()
           Returns or sets rotation angle around Y axis.
 float getDepth()
           Returns or sets the depth of a shape in points (1/72 of inch).
 float getDiffuseAmount()
           Returns or sets amount of diffuse lighting.
 float getDirectLightIntensity()
           Returns or sets the intensity of a direct light.
 int getDirectLightSourceX()
           Returns or sets the X component of direction-to-source vector for a direct light.
 int getDirectLightSourceY()
           Returns or sets the Y component of direction-to-source vector for a direct light.
 int getDirectLightSourceZ()
           Returns or sets the Z component of direction-to-source vector for a direct light.
 java.awt.Color getExtrusionColor()
           
 short getExtrusionColorIndex()
           Returns or sets the index of shadow's color in color scheme, <b>-1</b> for scheme independed color or <b>-2</b> if ExtrusionColor is not defined.
 int getExtrusionDirection()
           Returns or sets one of ExtrusionDirection preset.
 int getLightingDirection()
           Returns or sets the one of light direction presets.
 boolean getPerspectiveProjection()
           Determines whether perspective projection is used.
 float getReflectedLightIntensity()
           Returns or sets the intensity of a reflected light.
 int getReflectedLightSourceX()
           Returns or sets the X component of direction-to-source vector for a reflected light.
 int getReflectedLightSourceY()
           Returns or sets the Y component of direction-to-source vector for a reflected light.
 int getReflectedLightSourceZ()
           Returns or sets the Z component of direction-to-source vector for a reflected light.
 short getSkewAmount()
           Returns or sets amount of skew in percents of shape's depth.
 float getSkewAngle()
           Returns or sets the skew angle.
 int getThreeDRenderingType()
           Returns or sets 3D rendering type.
 int getThreeDStyle()
           Returns or sets current 3D preset.
 float getViewpointOffsetX()
           Determines X component of viewpoint offset in points (1/72 of inch).
 float getViewpointOffsetY()
           Determines Y component of viewpoint offset in points (1/72 of inch).
 float getViewpointOriginX()
           Determines X component of viewpoint origin.
 float getViewpointOriginY()
           Determines Y component of viewpoint origin.
 boolean getVisible()
           Determines whether the shape has 3D decoration.
 void setAmbientLightIntensity(float value)
           
 void setAngleX(float value)
           
 void setAngleY(float value)
           
 void setDepth(float value)
           
 void setDiffuseAmount(float value)
           
 void setDirectLightIntensity(float value)
           
 void setDirectLightSourceX(int value)
           
 void setDirectLightSourceY(int value)
           
 void setDirectLightSourceZ(int value)
           
 void setExtrusionColor(java.awt.Color value)
           
 void setExtrusionColorIndex(short value)
           
 void setExtrusionDirection(int value)
           
 void setLightingDirection(int value)
           
 void setPerspectiveProjection(boolean value)
           
 void setReflectedLightIntensity(float value)
           
 void setReflectedLightSourceX(int value)
           
 void setReflectedLightSourceY(int value)
           
 void setReflectedLightSourceZ(int value)
           
 void setSkewAmount(short value)
           
 void setSkewAngle(float value)
           
 void setThreeDRenderingType(int value)
           
 void setThreeDStyle(int value)
           
 void setViewpointOffsetX(float value)
           
 void setViewpointOffsetY(float value)
           
 void setViewpointOriginX(float value)
           
 void setViewpointOriginY(float value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVisible

public boolean getVisible()

Determines whether the shape has 3D decoration. Read/write bool


setVisible

public void setVisible(boolean value)

getThreeDStyle

public int getThreeDStyle()

Returns or sets current 3D preset. Read/write Aspose.Slides.ThreeDStyle


setThreeDStyle

public void setThreeDStyle(int value)

getThreeDRenderingType

public int getThreeDRenderingType()

Returns or sets 3D rendering type. Read/write ThreeDRenderingType


setThreeDRenderingType

public void setThreeDRenderingType(int value)

getExtrusionColor

public java.awt.Color getExtrusionColor()

setExtrusionColor

public void setExtrusionColor(java.awt.Color value)

getExtrusionColorIndex

public short getExtrusionColorIndex()

Returns or sets the index of shadow's color in color scheme, <b>-1</b> for scheme independed color or <b>-2</b> if ExtrusionColor is not defined. Read/Write short


setExtrusionColorIndex

public void setExtrusionColorIndex(short value)

getDepth

public float getDepth()

Returns or sets the depth of a shape in points (1/72 of inch). Read/write float


setDepth

public void setDepth(float value)

getAngleY

public float getAngleY()

Returns or sets rotation angle around Y axis. Read/write float


setAngleY

public void setAngleY(float value)

getAngleX

public float getAngleX()

Returns or sets rotation angle around X axis. Read/write float


setAngleX

public void setAngleX(float value)

getPerspectiveProjection

public boolean getPerspectiveProjection()

Determines whether perspective projection is used. Read/write bool


setPerspectiveProjection

public void setPerspectiveProjection(boolean value)

getExtrusionDirection

public int getExtrusionDirection()

Returns or sets one of ExtrusionDirection preset. ExtrusionDirection determines which side faces of 3D shape will be visible. Read/write Aspose.Slides.ExtrusionDirection


setExtrusionDirection

public void setExtrusionDirection(int value)

getSkewAngle

public float getSkewAngle()

Returns or sets the skew angle. Used when projection is parallel to make visible side faces of the shape. Value <b>0</b> means there is no skew, to make angle equal to zero use <b>-360</b>. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write float


setSkewAngle

public void setSkewAngle(float value)

getSkewAmount

public short getSkewAmount()

Returns or sets amount of skew in percents of shape's depth. Used when projection is parallel to make visible side faces of the shape. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write short


setSkewAmount

public void setSkewAmount(short value)

getViewpointOriginX

public float getViewpointOriginX()

Determines X component of viewpoint origin. Viewpoint origin X will be equal to Shape.X + ViewpointOriginX * Shape.Width. Viewpoint determines so called "vanishing point" - point to which all lines, parallel to Z axis will converge. Used when projection is perspective to make visible side faces of shape. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write float


setViewpointOriginX

public void setViewpointOriginX(float value)

getViewpointOriginY

public float getViewpointOriginY()

Determines Y component of viewpoint origin. Viewpoint origin Y will be equal to Shape.Y + ViewpointOriginY * Shape.Height. Viewpoint determines so called "vanishing point" - point to which all lines, parallel to Z axis will converge. Used when projection is perspective to make visible side faces of shape. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write float


setViewpointOriginY

public void setViewpointOriginY(float value)

getViewpointOffsetX

public float getViewpointOffsetX()

Determines X component of viewpoint offset in points (1/72 of inch). Viewpoint determines so called "vanishing point" - point to which all lines, parallel to Z axis will converge. Used when projection is perspective to make visible side faces of shape. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write float


setViewpointOffsetX

public void setViewpointOffsetX(float value)

getViewpointOffsetY

public float getViewpointOffsetY()

Determines Y component of viewpoint offset in points (1/72 of inch). Viewpoint determines so called "vanishing point" - point to which all lines, parallel to Z axis will converge. Used when projection is perspective to make visible side faces of shape. Note: This property is for advanced control only. Use Aspose.Slides.ThreeDFormat.ExtrusionDirection instead. Read/write float


setViewpointOffsetY

public void setViewpointOffsetY(float value)

getDiffuseAmount

public float getDiffuseAmount()

Returns or sets amount of diffuse lighting. Read/write float


setDiffuseAmount

public void setDiffuseAmount(float value)

getLightingDirection

public int getLightingDirection()

Returns or sets the one of light direction presets. Read/write Aspose.Slides.LightingDirection


setLightingDirection

public void setLightingDirection(int value)

getAmbientLightIntensity

public float getAmbientLightIntensity()

Returns or sets the ambient light intensity. Read/write float


setAmbientLightIntensity

public void setAmbientLightIntensity(float value)

getDirectLightSourceX

public int getDirectLightSourceX()

Returns or sets the X component of direction-to-source vector for a direct light. Read/write int


setDirectLightSourceX

public void setDirectLightSourceX(int value)

getDirectLightSourceY

public int getDirectLightSourceY()

Returns or sets the Y component of direction-to-source vector for a direct light. Read/write int


setDirectLightSourceY

public void setDirectLightSourceY(int value)

getDirectLightSourceZ

public int getDirectLightSourceZ()

Returns or sets the Z component of direction-to-source vector for a direct light. Read/write int


setDirectLightSourceZ

public void setDirectLightSourceZ(int value)

getDirectLightIntensity

public float getDirectLightIntensity()

Returns or sets the intensity of a direct light. Read/write float


setDirectLightIntensity

public void setDirectLightIntensity(float value)

getReflectedLightSourceX

public int getReflectedLightSourceX()

Returns or sets the X component of direction-to-source vector for a reflected light. Read/write int


setReflectedLightSourceX

public void setReflectedLightSourceX(int value)

getReflectedLightSourceY

public int getReflectedLightSourceY()

Returns or sets the Y component of direction-to-source vector for a reflected light. Read/write int


setReflectedLightSourceY

public void setReflectedLightSourceY(int value)

getReflectedLightSourceZ

public int getReflectedLightSourceZ()

Returns or sets the Z component of direction-to-source vector for a reflected light. Read/write int


setReflectedLightSourceZ

public void setReflectedLightSourceZ(int value)

getReflectedLightIntensity

public float getReflectedLightIntensity()

Returns or sets the intensity of a reflected light. Reflected light is used to emulate lighting from first reflections from surrounding objects. Contrary to a direct light, the reflected ligth has many sources, so its lesser depends on light falling angle. Read/write float


setReflectedLightIntensity

public void setReflectedLightIntensity(float value)