asposediagram.api

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
methodgetBevelBottomHeight()
method
           Specifies the height of the bottom bevel on a 3D shape.
methodgetBevelBottomType()
method
           Specifies the preset bevel type for the bottom bevel on a 3D shape
methodgetBevelBottomWidth()
method
           Specifies the width of the bottom bevel on a 3D shape.
methodgetBevelContourColor()
method
           Specifies the color of the outline on a 3D shape
methodgetBevelContourSize()
method
           Specifies the thickness of the outline on a 3D shape
methodgetBevelDepthColor()
method
           Specifies the extrusion color on a 3D shape
methodgetBevelDepthSize()
method
           Specifies the extrusion depth on a 3D shape
methodgetBevelLightingAngle()
method
           Specifies the direction for lighting on a 3D shape.
methodgetBevelLightingType()
method
           Specifies the preset type of lighting on a 3D shape
methodgetBevelMaterialType()
method
           Specifies the preset surface appearance on a 3D shape
methodgetBevelTopHeight()
method
           Specifies the height of the top bevel on a 3D shape
methodgetBevelTopType()
method
           Specifies the preset bevel type for the top bevel on a 3D shape
methodgetBevelTopWidth()
method
           Specifies the width of the top bevel on a 3D shape.
methodgetDistanceFromGround()
method
           Specifies the distance that a shape with 3D rotation properties
methodgetKeepTextFlat()
method
           Specifies whether 3D rotation properties apply to the text of a shape
methodgetPerspective()
method
           Specifies the angle of view for a shape with 3D rotation properties
methodgetRotationType()
method
           Specifies the type of projection of the effect properties of a shape.
methodgetRotationXAngle()
method
           Specifies the counterclockwise rotation angle of a shape around the y-axis.
methodgetRotationYAngle()
method
           Specifies the counterclockwise rotation angle of a shape around the x-axis
methodgetRotationZAngle()
method
           Specifies the counterclockwise rotation angle of a shape around the z-axis.
 
Method Summary
methodequals(obj)
 

    • Property Getters/Setters Detail

      • getBevelBottomHeight/setBevelBottomHeight : DoubleValue 

        DoubleValue getBevelBottomHeight() / setBevelBottomHeight(value)
        
        Specifies the height of the bottom bevel on a 3D shape.
      • getBevelBottomType/setBevelBottomType : BevelType 

        BevelType getBevelBottomType() / setBevelBottomType(value)
        
        Specifies the preset bevel type for the bottom bevel on a 3D shape
      • getBevelBottomWidth/setBevelBottomWidth : DoubleValue 

        DoubleValue getBevelBottomWidth() / setBevelBottomWidth(value)
        
        Specifies the width of the bottom bevel on a 3D shape.
      • getBevelContourColor/setBevelContourColor : ColorValue 

        ColorValue getBevelContourColor() / setBevelContourColor(value)
        
        Specifies the color of the outline on a 3D shape
      • getBevelContourSize/setBevelContourSize : DoubleValue 

        DoubleValue getBevelContourSize() / setBevelContourSize(value)
        
        Specifies the thickness of the outline on a 3D shape
      • getBevelDepthColor/setBevelDepthColor : ColorValue 

        ColorValue getBevelDepthColor() / setBevelDepthColor(value)
        
        Specifies the extrusion color on a 3D shape
      • getBevelDepthSize/setBevelDepthSize : DoubleValue 

        DoubleValue getBevelDepthSize() / setBevelDepthSize(value)
        
        Specifies the extrusion depth on a 3D shape
      • getBevelLightingAngle/setBevelLightingAngle : DoubleValue 

        DoubleValue getBevelLightingAngle() / setBevelLightingAngle(value)
        
        Specifies the direction for lighting on a 3D shape.
      • getBevelLightingType/setBevelLightingType : BevelLightingType 

        BevelLightingType getBevelLightingType() / setBevelLightingType(value)
        
        Specifies the preset type of lighting on a 3D shape
      • getBevelMaterialType/setBevelMaterialType : BevelMaterialType 

        BevelMaterialType getBevelMaterialType() / setBevelMaterialType(value)
        
        Specifies the preset surface appearance on a 3D shape
      • getBevelTopHeight/setBevelTopHeight : DoubleValue 

        DoubleValue getBevelTopHeight() / setBevelTopHeight(value)
        
        Specifies the height of the top bevel on a 3D shape
      • getBevelTopWidth/setBevelTopWidth : DoubleValue 

        DoubleValue getBevelTopWidth() / setBevelTopWidth(value)
        
        Specifies the width of the top bevel on a 3D shape.
      • getBevelTopType/setBevelTopType : BevelType 

        BevelType getBevelTopType() / setBevelTopType(value)
        
        Specifies the preset bevel type for the top bevel on a 3D shape
      • getDistanceFromGround/setDistanceFromGround : DoubleValue 

        DoubleValue getDistanceFromGround() / setDistanceFromGround(value)
        
        Specifies the distance that a shape with 3D rotation properties
      • getPerspective/setPerspective : DoubleValue 

        DoubleValue getPerspective() / setPerspective(value)
        
        Specifies the angle of view for a shape with 3D rotation properties
      • getRotationType/setRotationType : RotationType 

        RotationType getRotationType() / setRotationType(value)
        
        Specifies the type of projection of the effect properties of a shape.
      • getRotationXAngle/setRotationXAngle : DoubleValue 

        DoubleValue getRotationXAngle() / setRotationXAngle(value)
        
        Specifies the counterclockwise rotation angle of a shape around the y-axis.
      • getRotationYAngle/setRotationYAngle : DoubleValue 

        DoubleValue getRotationYAngle() / setRotationYAngle(value)
        
        Specifies the counterclockwise rotation angle of a shape around the x-axis
      • getRotationZAngle/setRotationZAngle : DoubleValue 

        DoubleValue getRotationZAngle() / setRotationZAngle(value)
        
        Specifies the counterclockwise rotation angle of a shape around the z-axis.
      • getKeepTextFlat/setKeepTextFlat : BoolValue 

        BoolValue getKeepTextFlat() / setKeepTextFlat(value)
        
        Specifies whether 3D rotation properties apply to the text of a shape
    • Method Detail

      • equals

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