ThreeDFormat

Inheritance: java.lang.Object, com.aspose.slides.PVIObject

All Implemented Interfaces: com.aspose.slides.IThreeDFormat, com.aspose.slides.IThreeDParamSource

public class ThreeDFormat extends PVIObject implements IThreeDFormat, IThreeDParamSource

Represents 3-D properties.

Methods

Method Description
getContourWidth() Returns or sets the width of a 3D contour.
setContourWidth(double value) Returns or sets the width of a 3D contour.
getExtrusionHeight() Returns or sets the height of an extrusion effect.
setExtrusionHeight(double value) Returns or sets the height of an extrusion effect.
getDepth() Returns or sets the depth of a 3D shape.
setDepth(double value) Returns or sets the depth of a 3D shape.
getBevelTop() Returns or sets the type of a top 3D bevel.
getBevelBottom() Returns or sets the type of a bottom 3D bevel.
getContourColor() Returns or sets the color of a contour.
getExtrusionColor() Returns or sets the color of an extrusion.
getCamera() Returns or sets the settings of a camera.
getLightRig() Returns or sets the type of a light.
getMaterial() Returns or sets the type of a material.
setMaterial(int value) Returns or sets the type of a material.
getEffective() Gets effective 3-D formatting data with the inheritance applied.

getContourWidth()

public final double getContourWidth()

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

Returns: double

setContourWidth(double value)

public final void setContourWidth(double value)

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

Parameters:

Parameter Type Description
value double

getExtrusionHeight()

public final double getExtrusionHeight()

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

Returns: double

setExtrusionHeight(double value)

public final void setExtrusionHeight(double value)

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

Parameters:

Parameter Type Description
value double

getDepth()

public final double getDepth()

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

Returns: double

setDepth(double value)

public final void setDepth(double value)

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

Parameters:

Parameter Type Description
value double

getBevelTop()

public final IShapeBevel getBevelTop()

Returns or sets the type of a top 3D bevel. Read-only IShapeBevel.

Returns: IShapeBevel

getBevelBottom()

public final IShapeBevel getBevelBottom()

Returns or sets the type of a bottom 3D bevel. Read-only IShapeBevel.

Returns: IShapeBevel

getContourColor()

public final IColorFormat getContourColor()

Returns or sets the color of a contour. Read-only IColorFormat.

Returns: IColorFormat

getExtrusionColor()

public final IColorFormat getExtrusionColor()

Returns or sets the color of an extrusion. Read-only IColorFormat.

Returns: IColorFormat

getCamera()

public final ICamera getCamera()

Returns or sets the settings of a camera. Read-only ICamera.

Returns: ICamera

getLightRig()

public final ILightRig getLightRig()

Returns or sets the type of a light. Read-only ILightRig.

Returns: ILightRig

getMaterial()

public final int getMaterial()

Returns or sets the type of a material. Read/write MaterialPresetType.

Returns: int

setMaterial(int value)

public final void setMaterial(int value)

Returns or sets the type of a material. Read/write MaterialPresetType.

Parameters:

Parameter Type Description
value int

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();
 }

Returns: IThreeDFormatEffectiveData - A IThreeDFormatEffectiveData.