...
Documentation
Documentation

# Package model3d

## Overview ▹

## Overview ▾

## Index ▹

## Index ▾

### Package files

CT_AmbientLight.go CT_DirectionalLight.go CT_Model3D.go CT_Model3DCamera.go CT_Model3DCameraChoice.go CT_Model3DChoice.go CT_Model3DChoice1.go CT_Model3DRaster.go CT_Model3DTransform.go CT_ObjectViewport.go CT_OrthographicProjection.go CT_PerspectiveProjection.go CT_PointLight.go CT_PositiveRatio.go CT_Rotate3D.go CT_Scale3D.go CT_SpotLight.go CT_UnknownLight.go CT_WindowViewport.go Model3d.go common.go

## type CT_AmbientLight ¶

    type CT_AmbientLight struct {
        EnabledAttr *bool
        Clr         *dml.CT_Color
        Illuminance *CT_PositiveRatio
        ExtLst      *dml.CT_OfficeArtExtensionList
    }

### func NewCT_AmbientLight ¶

    func NewCT_AmbientLight() *CT_AmbientLight

### func (*CT_AmbientLight) MarshalXML ¶

    func (m *CT_AmbientLight) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_AmbientLight) UnmarshalXML ¶

    func (m *CT_AmbientLight) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_AmbientLight) Validate ¶

    func (m *CT_AmbientLight) Validate() error

Validate validates the CT_AmbientLight and its children

### func (*CT_AmbientLight) ValidateWithPath ¶

    func (m *CT_AmbientLight) ValidateWithPath(path string) error

ValidateWithPath validates the CT_AmbientLight and its children, prefixing error messages with path

## type CT_DirectionalLight ¶

    type CT_DirectionalLight struct {
        EnabledAttr    *bool
        AngularRadAttr int32
        Clr            *dml.CT_Color
        Illuminance    *CT_PositiveRatio
        Pos            *dml.CT_Point3D
        LookAt         *dml.CT_Point3D
        ExtLst         *dml.CT_OfficeArtExtensionList
    }

### func NewCT_DirectionalLight ¶

    func NewCT_DirectionalLight() *CT_DirectionalLight

### func (*CT_DirectionalLight) MarshalXML ¶

    func (m *CT_DirectionalLight) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_DirectionalLight) UnmarshalXML ¶

    func (m *CT_DirectionalLight) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_DirectionalLight) Validate ¶

    func (m *CT_DirectionalLight) Validate() error

Validate validates the CT_DirectionalLight and its children

### func (*CT_DirectionalLight) ValidateWithPath ¶

    func (m *CT_DirectionalLight) ValidateWithPath(path string) error

ValidateWithPath validates the CT_DirectionalLight and its children, prefixing error messages with path

## type CT_Model3D ¶

    type CT_Model3D struct {
        SpPr           *dml.CT_ShapeProperties
        Camera         *CT_Model3DCamera
        Trans          *CT_Model3DTransform
        AttrSrcUrl     *drawing.CT_PictureAttributionSourceURL
        Raster         *CT_Model3DRaster
        ExtLst         *dml.CT_OfficeArtExtensionList
        Model3DChoice  *CT_Model3DChoice
        AmbientLight   *CT_AmbientLight
        Model3DChoice1 []*CT_Model3DChoice1
        EmbedAttr      *string
        LinkAttr       *string
    }

### func NewCT_Model3D ¶

    func NewCT_Model3D() *CT_Model3D

### func (*CT_Model3D) MarshalXML ¶

    func (m *CT_Model3D) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3D) UnmarshalXML ¶

    func (m *CT_Model3D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3D) Validate ¶

    func (m *CT_Model3D) Validate() error

Validate validates the CT_Model3D and its children

### func (*CT_Model3D) ValidateWithPath ¶

    func (m *CT_Model3D) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3D and its children, prefixing error messages with path

## type CT_Model3DCamera ¶

    type CT_Model3DCamera struct {
        Pos                 *dml.CT_Point3D
        Up                  *dml.CT_Vector3D
        LookAt              *dml.CT_Point3D
        Model3DCameraChoice *CT_Model3DCameraChoice
        ExtLst              *dml.CT_OfficeArtExtensionList
    }

### func NewCT_Model3DCamera ¶

    func NewCT_Model3DCamera() *CT_Model3DCamera

### func (*CT_Model3DCamera) MarshalXML ¶

    func (m *CT_Model3DCamera) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DCamera) UnmarshalXML ¶

    func (m *CT_Model3DCamera) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DCamera) Validate ¶

    func (m *CT_Model3DCamera) Validate() error

Validate validates the CT_Model3DCamera and its children

### func (*CT_Model3DCamera) ValidateWithPath ¶

    func (m *CT_Model3DCamera) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DCamera and its children, prefixing error messages with path

## type CT_Model3DCameraChoice ¶

    type CT_Model3DCameraChoice struct {
        Orthographic *CT_OrthographicProjection
        Perspective  *CT_PerspectiveProjection
    }

### func NewCT_Model3DCameraChoice ¶

    func NewCT_Model3DCameraChoice() *CT_Model3DCameraChoice

### func (*CT_Model3DCameraChoice) MarshalXML ¶

    func (m *CT_Model3DCameraChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DCameraChoice) UnmarshalXML ¶

    func (m *CT_Model3DCameraChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DCameraChoice) Validate ¶

    func (m *CT_Model3DCameraChoice) Validate() error

Validate validates the CT_Model3DCameraChoice and its children

### func (*CT_Model3DCameraChoice) ValidateWithPath ¶

    func (m *CT_Model3DCameraChoice) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DCameraChoice and its children, prefixing error messages with path

## type CT_Model3DChoice ¶

    type CT_Model3DChoice struct {
        ObjViewport *CT_ObjectViewport
        WinViewport *CT_WindowViewport
    }

### func NewCT_Model3DChoice ¶

    func NewCT_Model3DChoice() *CT_Model3DChoice

### func (*CT_Model3DChoice) MarshalXML ¶

    func (m *CT_Model3DChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DChoice) UnmarshalXML ¶

    func (m *CT_Model3DChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DChoice) Validate ¶

    func (m *CT_Model3DChoice) Validate() error

Validate validates the CT_Model3DChoice and its children

### func (*CT_Model3DChoice) ValidateWithPath ¶

    func (m *CT_Model3DChoice) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DChoice and its children, prefixing error messages with path

## type CT_Model3DChoice1 ¶

    type CT_Model3DChoice1 struct {
        PtLight   *CT_PointLight
        SpotLight *CT_SpotLight
        DirLight  *CT_DirectionalLight
        UnkLight  *CT_UnknownLight
    }

### func NewCT_Model3DChoice1 ¶

    func NewCT_Model3DChoice1() *CT_Model3DChoice1

### func (*CT_Model3DChoice1) MarshalXML ¶

    func (m *CT_Model3DChoice1) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DChoice1) UnmarshalXML ¶

    func (m *CT_Model3DChoice1) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DChoice1) Validate ¶

    func (m *CT_Model3DChoice1) Validate() error

Validate validates the CT_Model3DChoice1 and its children

### func (*CT_Model3DChoice1) ValidateWithPath ¶

    func (m *CT_Model3DChoice1) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DChoice1 and its children, prefixing error messages with path

## type CT_Model3DRaster ¶

    type CT_Model3DRaster struct {
        RNameAttr string
        RVerAttr  string
        Blip      *dml.CT_Blip
    }

### func NewCT_Model3DRaster ¶

    func NewCT_Model3DRaster() *CT_Model3DRaster

### func (*CT_Model3DRaster) MarshalXML ¶

    func (m *CT_Model3DRaster) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DRaster) UnmarshalXML ¶

    func (m *CT_Model3DRaster) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DRaster) Validate ¶

    func (m *CT_Model3DRaster) Validate() error

Validate validates the CT_Model3DRaster and its children

### func (*CT_Model3DRaster) ValidateWithPath ¶

    func (m *CT_Model3DRaster) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DRaster and its children, prefixing error messages with path

## type CT_Model3DTransform ¶

    type CT_Model3DTransform struct {
        MeterPerModelUnit *CT_PositiveRatio
        PreTrans          *dml.CT_Vector3D
        Scale             *CT_Scale3D
        Rot               *CT_Rotate3D
        PostTrans         *dml.CT_Vector3D
        ExtLst            *dml.CT_OfficeArtExtensionList
    }

### func NewCT_Model3DTransform ¶

    func NewCT_Model3DTransform() *CT_Model3DTransform

### func (*CT_Model3DTransform) MarshalXML ¶

    func (m *CT_Model3DTransform) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Model3DTransform) UnmarshalXML ¶

    func (m *CT_Model3DTransform) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Model3DTransform) Validate ¶

    func (m *CT_Model3DTransform) Validate() error

Validate validates the CT_Model3DTransform and its children

### func (*CT_Model3DTransform) ValidateWithPath ¶

    func (m *CT_Model3DTransform) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Model3DTransform and its children, prefixing error messages with path

## type CT_ObjectViewport ¶

    type CT_ObjectViewport struct {
        ViewportSzAttr int64
        ExtLst         *dml.CT_OfficeArtExtensionList
    }

### func NewCT_ObjectViewport ¶

    func NewCT_ObjectViewport() *CT_ObjectViewport

### func (*CT_ObjectViewport) MarshalXML ¶

    func (m *CT_ObjectViewport) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_ObjectViewport) UnmarshalXML ¶

    func (m *CT_ObjectViewport) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_ObjectViewport) Validate ¶

    func (m *CT_ObjectViewport) Validate() error

Validate validates the CT_ObjectViewport and its children

### func (*CT_ObjectViewport) ValidateWithPath ¶

    func (m *CT_ObjectViewport) ValidateWithPath(path string) error

ValidateWithPath validates the CT_ObjectViewport and its children, prefixing error messages with path

## type CT_OrthographicProjection ¶

    type CT_OrthographicProjection struct {
        Sz     *CT_PositiveRatio
        ExtLst *dml.CT_OfficeArtExtensionList
    }

### func NewCT_OrthographicProjection ¶

    func NewCT_OrthographicProjection() *CT_OrthographicProjection

### func (*CT_OrthographicProjection) MarshalXML ¶

    func (m *CT_OrthographicProjection) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_OrthographicProjection) UnmarshalXML ¶

    func (m *CT_OrthographicProjection) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_OrthographicProjection) Validate ¶

    func (m *CT_OrthographicProjection) Validate() error

Validate validates the CT_OrthographicProjection and its children

### func (*CT_OrthographicProjection) ValidateWithPath ¶

    func (m *CT_OrthographicProjection) ValidateWithPath(path string) error

ValidateWithPath validates the CT_OrthographicProjection and its children, prefixing error messages with path

## type CT_PerspectiveProjection ¶

    type CT_PerspectiveProjection struct {
        FovAttr int32
        ExtLst  *dml.CT_OfficeArtExtensionList
    }

### func NewCT_PerspectiveProjection ¶

    func NewCT_PerspectiveProjection() *CT_PerspectiveProjection

### func (*CT_PerspectiveProjection) MarshalXML ¶

    func (m *CT_PerspectiveProjection) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_PerspectiveProjection) UnmarshalXML ¶

    func (m *CT_PerspectiveProjection) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_PerspectiveProjection) Validate ¶

    func (m *CT_PerspectiveProjection) Validate() error

Validate validates the CT_PerspectiveProjection and its children

### func (*CT_PerspectiveProjection) ValidateWithPath ¶

    func (m *CT_PerspectiveProjection) ValidateWithPath(path string) error

ValidateWithPath validates the CT_PerspectiveProjection and its children, prefixing error messages with path

## type CT_PointLight ¶

    type CT_PointLight struct {
        EnabledAttr *bool
        RadAttr     int64
        Clr         *dml.CT_Color
        Intensity   *CT_PositiveRatio
        Pos         *dml.CT_Point3D
        ExtLst      *dml.CT_OfficeArtExtensionList
    }

### func NewCT_PointLight ¶

    func NewCT_PointLight() *CT_PointLight

### func (*CT_PointLight) MarshalXML ¶

    func (m *CT_PointLight) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_PointLight) UnmarshalXML ¶

    func (m *CT_PointLight) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_PointLight) Validate ¶

    func (m *CT_PointLight) Validate() error

Validate validates the CT_PointLight and its children

### func (*CT_PointLight) ValidateWithPath ¶

    func (m *CT_PointLight) ValidateWithPath(path string) error

ValidateWithPath validates the CT_PointLight and its children, prefixing error messages with path

## type CT_PositiveRatio ¶

    type CT_PositiveRatio struct {
        NAttr uint64
        DAttr uint64
    }

### func NewCT_PositiveRatio ¶

    func NewCT_PositiveRatio() *CT_PositiveRatio

### func (*CT_PositiveRatio) MarshalXML ¶

    func (m *CT_PositiveRatio) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_PositiveRatio) UnmarshalXML ¶

    func (m *CT_PositiveRatio) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_PositiveRatio) Validate ¶

    func (m *CT_PositiveRatio) Validate() error

Validate validates the CT_PositiveRatio and its children

### func (*CT_PositiveRatio) ValidateWithPath ¶

    func (m *CT_PositiveRatio) ValidateWithPath(path string) error

ValidateWithPath validates the CT_PositiveRatio and its children, prefixing error messages with path

## type CT_Rotate3D ¶

    type CT_Rotate3D struct {
        AxAttr *int32
        AyAttr *int32
        AzAttr *int32
    }

### func NewCT_Rotate3D ¶

    func NewCT_Rotate3D() *CT_Rotate3D

### func (*CT_Rotate3D) MarshalXML ¶

    func (m *CT_Rotate3D) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Rotate3D) UnmarshalXML ¶

    func (m *CT_Rotate3D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Rotate3D) Validate ¶

    func (m *CT_Rotate3D) Validate() error

Validate validates the CT_Rotate3D and its children

### func (*CT_Rotate3D) ValidateWithPath ¶

    func (m *CT_Rotate3D) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Rotate3D and its children, prefixing error messages with path

## type CT_Scale3D ¶

    type CT_Scale3D struct {
        Sx *dml.CT_Ratio
        Sy *dml.CT_Ratio
        Sz *dml.CT_Ratio
    }

### func NewCT_Scale3D ¶

    func NewCT_Scale3D() *CT_Scale3D

### func (*CT_Scale3D) MarshalXML ¶

    func (m *CT_Scale3D) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Scale3D) UnmarshalXML ¶

    func (m *CT_Scale3D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Scale3D) Validate ¶

    func (m *CT_Scale3D) Validate() error

Validate validates the CT_Scale3D and its children

### func (*CT_Scale3D) ValidateWithPath ¶

    func (m *CT_Scale3D) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Scale3D and its children, prefixing error messages with path

## type CT_SpotLight ¶

    type CT_SpotLight struct {
        EnabledAttr *bool
        RadAttr     int64
        SpotAngAttr int32
        Clr         *dml.CT_Color
        Intensity   *CT_PositiveRatio
        Pos         *dml.CT_Point3D
        LookAt      *dml.CT_Point3D
        ExtLst      *dml.CT_OfficeArtExtensionList
    }

### func NewCT_SpotLight ¶

    func NewCT_SpotLight() *CT_SpotLight

### func (*CT_SpotLight) MarshalXML ¶

    func (m *CT_SpotLight) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_SpotLight) UnmarshalXML ¶

    func (m *CT_SpotLight) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_SpotLight) Validate ¶

    func (m *CT_SpotLight) Validate() error

Validate validates the CT_SpotLight and its children

### func (*CT_SpotLight) ValidateWithPath ¶

    func (m *CT_SpotLight) ValidateWithPath(path string) error

ValidateWithPath validates the CT_SpotLight and its children, prefixing error messages with path

## type CT_UnknownLight ¶

    type CT_UnknownLight struct {
    }

### func NewCT_UnknownLight ¶

    func NewCT_UnknownLight() *CT_UnknownLight

### func (*CT_UnknownLight) MarshalXML ¶

    func (m *CT_UnknownLight) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_UnknownLight) UnmarshalXML ¶

    func (m *CT_UnknownLight) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_UnknownLight) Validate ¶

    func (m *CT_UnknownLight) Validate() error

Validate validates the CT_UnknownLight and its children

### func (*CT_UnknownLight) ValidateWithPath ¶

    func (m *CT_UnknownLight) ValidateWithPath(path string) error

ValidateWithPath validates the CT_UnknownLight and its children, prefixing error messages with path

## type CT_WindowViewport ¶

    type CT_WindowViewport struct {
        ExtLst *dml.CT_OfficeArtExtensionList
    }

### func NewCT_WindowViewport ¶

    func NewCT_WindowViewport() *CT_WindowViewport

### func (*CT_WindowViewport) MarshalXML ¶

    func (m *CT_WindowViewport) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_WindowViewport) UnmarshalXML ¶

    func (m *CT_WindowViewport) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_WindowViewport) Validate ¶

    func (m *CT_WindowViewport) Validate() error

Validate validates the CT_WindowViewport and its children

### func (*CT_WindowViewport) ValidateWithPath ¶

    func (m *CT_WindowViewport) ValidateWithPath(path string) error

ValidateWithPath validates the CT_WindowViewport and its children, prefixing error messages with path

## type Model3d ¶

    type Model3d struct {
        CT_Model3D
    }

### func NewModel3d ¶

    func NewModel3d() *Model3d

### func (*Model3d) MarshalXML ¶

    func (m *Model3d) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*Model3d) UnmarshalXML ¶

    func (m *Model3d) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*Model3d) Validate ¶

    func (m *Model3d) Validate() error

Validate validates the Model3d and its children

### func (*Model3d) ValidateWithPath ¶

    func (m *Model3d) ValidateWithPath(path string) error

ValidateWithPath validates the Model3d and its children, prefixing error messages with path