aspose.diagram
Class ThreeDFormat

Represents a shape's three-dimensional formatting.

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

diagram = new aspose.diagram.Diagram("AddingNewShape.vsdx");

// get shape by ID and page name
shape = diagram.getPages().getPage("Page-1").getShapes().getShape(796);
                
// set 3D rotation properties
shape.getThreeDFormat().getRotationXAngle().setValue(2.61);
shape.getThreeDFormat().getRotationYAngle().setValue(2.61);
shape.getThreeDFormat().getRotationZAngle().setValue(3);
shape.getThreeDFormat().getRotationType().setValue(aspose.diagram.RotationTypeValue.PARALLEL);
shape.getThreeDFormat().getPerspective().setValue(0);
shape.getThreeDFormat().getDistanceFromGround().setValue(0);
shape.getThreeDFormat().getKeepTextFlat().setValue(aspose.diagram.BOOL.TRUE);

diagram.save("out-Apply3DRotationEffects.vsdx", aspose.diagram.SaveFileFormat.VSDX);

Property Getters/Setters Summary
functiongetBevelBottomHeight()
functionsetBevelBottomHeight(value)
           Specifies the height of the bottom bevel on a 3D shape.
functiongetBevelBottomType()
functionsetBevelBottomType(value)
           Specifies the preset bevel type for the bottom bevel on a 3D shape
functiongetBevelBottomWidth()
functionsetBevelBottomWidth(value)
           Specifies the width of the bottom bevel on a 3D shape.
functiongetBevelContourColor()
functionsetBevelContourColor(value)
           Specifies the color of the outline on a 3D shape
functiongetBevelContourSize()
functionsetBevelContourSize(value)
           Specifies the thickness of the outline on a 3D shape
functiongetBevelDepthColor()
functionsetBevelDepthColor(value)
           Specifies the extrusion color on a 3D shape
functiongetBevelDepthSize()
functionsetBevelDepthSize(value)
           Specifies the extrusion depth on a 3D shape
functiongetBevelLightingAngle()
functionsetBevelLightingAngle(value)
           Specifies the direction for lighting on a 3D shape.
functiongetBevelLightingType()
functionsetBevelLightingType(value)
           Specifies the preset type of lighting on a 3D shape
functiongetBevelMaterialType()
functionsetBevelMaterialType(value)
           Specifies the preset surface appearance on a 3D shape
functiongetBevelTopHeight()
functionsetBevelTopHeight(value)
           Specifies the height of the top bevel on a 3D shape
functiongetBevelTopType()
functionsetBevelTopType(value)
           Specifies the preset bevel type for the top bevel on a 3D shape
functiongetBevelTopWidth()
functionsetBevelTopWidth(value)
           Specifies the width of the top bevel on a 3D shape.
functiongetDistanceFromGround()
functionsetDistanceFromGround(value)
           Specifies the distance that a shape with 3D rotation properties
functiongetKeepTextFlat()
functionsetKeepTextFlat(value)
           Specifies whether 3D rotation properties apply to the text of a shape
functiongetPerspective()
functionsetPerspective(value)
           Specifies the angle of view for a shape with 3D rotation properties
functiongetRotationType()
functionsetRotationType(value)
           Specifies the type of projection of the effect properties of a shape.
functiongetRotationXAngle()
functionsetRotationXAngle(value)
           Specifies the counterclockwise rotation angle of a shape around the y-axis.
functiongetRotationYAngle()
functionsetRotationYAngle(value)
           Specifies the counterclockwise rotation angle of a shape around the x-axis
functiongetRotationZAngle()
functionsetRotationZAngle(value)
           Specifies the counterclockwise rotation angle of a shape around the z-axis.
 
Method Summary
functionequals(obj)
          
 

Property Getters/Setters Detail

getBevelBottomHeight/setBevelBottomHeight : DoubleValue 

function getBevelBottomHeight() / function setBevelBottomHeight(value)
Specifies the height of the bottom bevel on a 3D shape.

getBevelBottomType/setBevelBottomType : BevelType 

function getBevelBottomType() / function setBevelBottomType(value)
Specifies the preset bevel type for the bottom bevel on a 3D shape

getBevelBottomWidth/setBevelBottomWidth : DoubleValue 

function getBevelBottomWidth() / function setBevelBottomWidth(value)
Specifies the width of the bottom bevel on a 3D shape.

getBevelContourColor/setBevelContourColor : ColorValue 

function getBevelContourColor() / function setBevelContourColor(value)
Specifies the color of the outline on a 3D shape

getBevelContourSize/setBevelContourSize : DoubleValue 

function getBevelContourSize() / function setBevelContourSize(value)
Specifies the thickness of the outline on a 3D shape

getBevelDepthColor/setBevelDepthColor : ColorValue 

function getBevelDepthColor() / function setBevelDepthColor(value)
Specifies the extrusion color on a 3D shape

getBevelDepthSize/setBevelDepthSize : DoubleValue 

function getBevelDepthSize() / function setBevelDepthSize(value)
Specifies the extrusion depth on a 3D shape

getBevelLightingAngle/setBevelLightingAngle : DoubleValue 

function getBevelLightingAngle() / function setBevelLightingAngle(value)
Specifies the direction for lighting on a 3D shape.

getBevelLightingType/setBevelLightingType : BevelLightingType 

function getBevelLightingType() / function setBevelLightingType(value)
Specifies the preset type of lighting on a 3D shape

getBevelMaterialType/setBevelMaterialType : BevelMaterialType 

function getBevelMaterialType() / function setBevelMaterialType(value)
Specifies the preset surface appearance on a 3D shape

getBevelTopHeight/setBevelTopHeight : DoubleValue 

function getBevelTopHeight() / function setBevelTopHeight(value)
Specifies the height of the top bevel on a 3D shape

getBevelTopWidth/setBevelTopWidth : DoubleValue 

function getBevelTopWidth() / function setBevelTopWidth(value)
Specifies the width of the top bevel on a 3D shape.

getBevelTopType/setBevelTopType : BevelType 

function getBevelTopType() / function setBevelTopType(value)
Specifies the preset bevel type for the top bevel on a 3D shape

getDistanceFromGround/setDistanceFromGround : DoubleValue 

function getDistanceFromGround() / function setDistanceFromGround(value)
Specifies the distance that a shape with 3D rotation properties

getPerspective/setPerspective : DoubleValue 

function getPerspective() / function setPerspective(value)
Specifies the angle of view for a shape with 3D rotation properties

getRotationType/setRotationType : RotationType 

function getRotationType() / function setRotationType(value)
Specifies the type of projection of the effect properties of a shape.

getRotationXAngle/setRotationXAngle : DoubleValue 

function getRotationXAngle() / function setRotationXAngle(value)
Specifies the counterclockwise rotation angle of a shape around the y-axis.

getRotationYAngle/setRotationYAngle : DoubleValue 

function getRotationYAngle() / function setRotationYAngle(value)
Specifies the counterclockwise rotation angle of a shape around the x-axis

getRotationZAngle/setRotationZAngle : DoubleValue 

function getRotationZAngle() / function setRotationZAngle(value)
Specifies the counterclockwise rotation angle of a shape around the z-axis.

getKeepTextFlat/setKeepTextFlat : BoolValue 

function getKeepTextFlat() / function setKeepTextFlat(value)
Specifies whether 3D rotation properties apply to the text of a shape

Method Detail

equals

function equals(obj)
Parameters:
obj: Object -
Returns:

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.