com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ThreeDFormat

    • Method Detail

      • getContourWidth

        public final double getContourWidth()

        Returns or sets the width of a 3D contour. Read/write double.

        Specified by:
        getContourWidth in interface IThreeDFormat
      • setContourWidth

        public final void setContourWidth(double value)

        Returns or sets the width of a 3D contour. Read/write double.

        Specified by:
        setContourWidth in interface IThreeDFormat
      • getExtrusionHeight

        public final double getExtrusionHeight()

        Returns or sets the height of an extrusion effect. Read/write double.

        Specified by:
        getExtrusionHeight in interface IThreeDFormat
      • setExtrusionHeight

        public final void setExtrusionHeight(double value)

        Returns or sets the height of an extrusion effect. Read/write double.

        Specified by:
        setExtrusionHeight in interface IThreeDFormat
      • getDepth

        public final double getDepth()

        Returns or sets the depth of a 3D shape. Read/write double.

        Specified by:
        getDepth in interface IThreeDFormat
      • setDepth

        public final void setDepth(double value)

        Returns or sets the depth of a 3D shape. Read/write double.

        Specified by:
        setDepth in interface IThreeDFormat
      • getEffective

        public final IThreeDFormatEffectiveData getEffective()

        Gets effective 3-D formatting data with the inheritance applied.


         This example demonstrates how to get effective properties for camera, light rig and shape's top bevel.
         
         Presentation pres = new Presentation("MyPresentation.pptx");
         try 
         {
             IThreeDFormatEffectiveData threeDEffectiveData = pres.getSlides().get_Item(0).getShapes().get_Item(0).getThreeDFormat().getEffective();
             System.out.println("= Effective camera properties =");
             System.out.println("Type: " + threeDEffectiveData.getCamera().getCameraType());
             System.out.println("Field of view: " + threeDEffectiveData.getCamera().getFieldOfViewAngle());
             System.out.println("Zoom: " + threeDEffectiveData.getCamera().getZoom());
             System.out.println("= Effective light rig properties =");
             System.out.println("Type: " + threeDEffectiveData.getLightRig().getLightType());
             System.out.println("Direction: " + threeDEffectiveData.getLightRig().getDirection());
             System.out.println("= Effective shape's top face relief properties =");
             System.out.println("Type: " + threeDEffectiveData.getBevelTop().getBevelType());
             System.out.println("Width: " + threeDEffectiveData.getBevelTop().getWidth());
             System.out.println("Height: " + threeDEffectiveData.getBevelTop().getHeight());
         } finally {
          if (pres != null) pres.dispose();
         }
         
        Specified by:
        getEffective in interface IThreeDFormat
        Returns:
        A IThreeDFormatEffectiveData.