Skip to main content

Image3DViewList

Version: 12.0

cete.dynamicpdf.pageelements.image3dviewlist

Image3DViewList​

Represents list of views for a 3D image.

public class Image3DViewList
Public Class Image3DViewList

Inheritance: Object → Image3DViewList

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples​

The following example will place an 3D image on the page.

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule

Sub Main()

' Create a PDF Document
Dim MyDocument As Document = New Document

' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)

' Create a 3D image
Dim MyImage3D As Image3D = New Image3D(imageFilePath, 0, 0, 500, 500)

' Set the Image3DViewList to the Views of 3D image
Dim MyImage3DViewList As Image3DViewList = MyImage3D.Views

Dim array() As Single = {-0.382683F, 0.92388F, -0.0000000616624F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -8.84868F, -4.0174F, 1.99746F}
MyImage3DViewList.Default.TransformationMatrix = array
MyImage3DViewList.Default.CenterOfOrbit = 9.76537F

' Add the 3D image to the page
MyPage.Elements.Add(MyImage3D)

' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")

End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
public static void CreatePDF(string outputPath, string imageFilePath)
{
// Create a PDF Document
Document document = new Document();

// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);

// Create a 3D image
Image3D image3D = new Image3D(imageFilePath, 0, 0, 500, 500);

// Set the Image3DViewList to the Views of 3D Image
Image3DViewList image3DViewList = image3D.Views;

float[] array = new float[] { -0.382683f, 0.92388f, -0.0000000616624f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -8.84868f, -4.0174f, 1.99746f };
image3DViewList.Default.TransformationMatrix = array;
image3DViewList.Default.CenterOfOrbit = 9.76537f;

// Add the 3D image to the page
page.Elements.Add(image3D);

// Save the PDF
document.Draw(outputPath);
}
}

Remarks​

This class can be used to add view for a 3D image.

Properties​

Back​

Gets the back view of the 3D image.

public View3DProperties Back { get; }
Public Property Back As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Bottom​

Gets the bottom view of the 3D image.

public View3DProperties Bottom { get; }
Public Property Bottom As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Default​

Gets the default view of the 3D image.

public View3DProperties Default { get; }
Public Property Default As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Front​

Gets the fornt view of the 3D image.

public View3DProperties Front { get; }
Public Property Front As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Isometric​

Gets the isometric view of the 3D image.

public View3DProperties Isometric { get; }
Public Property Isometric As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Left​

Gets the left view of the 3D image.

public View3DProperties Left { get; }
Public Property Left As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Gets the right view of the 3D image.

public View3DProperties Right { get; }
Public Property Right As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Top​

Gets the top view of the 3D image.

public View3DProperties Top { get; }
Public Property Top As View3DProperties

Property Value​

View3DProperties

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.PageElements