Class PanoramaCube3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that shows a panorama cube or a skybox.
public class PanoramaCube3D : ModelVisual3D, IAnimatable, IAddChild
- Inheritance
-
PanoramaCube3D
- Implements
- Inherited Members
- Extension Methods
Constructors
PanoramaCube3D()
Initializes a new instance of the PanoramaCube3D class.
public PanoramaCube3D()
Fields
AutoCenterProperty
Identifies the AutoCenter dependency property.
public static readonly DependencyProperty AutoCenterProperty
Field Value
ShowSeamsProperty
Identifies the ShowSeams dependency property.
public static readonly DependencyProperty ShowSeamsProperty
Field Value
SizeProperty
Identifies the Size dependency property.
public static readonly DependencyProperty SizeProperty
Field Value
SourceProperty
Identifies the Source dependency property.
public static readonly DependencyProperty SourceProperty
Field Value
Properties
AutoCenter
Gets or sets a value indicating whether [auto center].
public bool AutoCenter { get; set; }
Property Value
- bool
trueif [auto center]; otherwise,false.
ShowSeams
Gets or sets a value indicating whether to show seams.
public bool ShowSeams { get; set; }
Property Value
Size
Gets or sets the size of the cube.
public double Size { get; set; }
Property Value
- double
The size.
Source
Gets or sets the panorama/skybox directory or file prefix.
public string Source { get; set; }
Property Value
- string
The source.
Remarks
If a directory is specified, the filename prefix will be set to "cube". If the filename prefix is "cube", the faces of the cube should be named cube_f.jpg cube_b.jpg cube_l.jpg cube_r.jpg cube_u.jpg cube_d.jpg
Methods
SourceChanged(DependencyObject, DependencyPropertyChangedEventArgs)
The source changed.
protected static void SourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
objDependencyObjectThe obj.
argsDependencyPropertyChangedEventArgsThe args.