Class PrimitiveVisual
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the primitive visual.
C#Copypublic class PrimitiveVisual : VisualMap
- Inheritance
Constructors
Declaration
C#Copypublic PrimitiveVisual()
API Level: 3
Properties
BevelPercentage
Gets or sets determines how bevelled the cuboid should be, based off the smallest dimension.
Bevel percentage ranges from 0.0 to 1.0. It affects the ratio of the outer face widths to the width of the overall cube.
If not specified, the default is 0.0f (no bevel).
Applies to:
- PrimitiveVisualShapeType.BevelledCube
The range is from 0.0f to 1.0f.
Optional.
Declaration
C#Copypublic float BevelPercentage { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
BevelSmoothness
Gets or sets descriptions of how smooth the bevelled edges should be.
If not specified, the default is 0.0f (sharp edges).
Applies to:
- PrimitiveVisualShapeType.BevelledCube
The range is from 0.0f to 1.0f.
Optional.
Declaration
C#Copypublic float BevelSmoothness { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
LightPosition
Gets or sets the position, in the stage space, of the point light that applies lighting to the model.
This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
and using all zeroes will place the light at the top-left corner.
If not specified, the default is an offset outwards from the center of the screen.
Applies to all shapes.
Optional.
Declaration
C#Copypublic Vector3 LightPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
API Level: 3
MixColor
Gets or sets the color of the shape.
If not specified, the default is Color (0.5, 0.5, 0.5, 1.0).
Applies to all shapes.
Optional.
Declaration
C#Copypublic Color MixColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: 3
ScaleBottomRadius
Gets or sets the scale of the radius of the bottom circle of a conical frustum.
If not specified, the default is 1.5f.
Applies to: - PrimitiveVisualShapeType.ConicalFrustrum
- PrimitiveVisualShapeType.Cone
Only values greater than or equal to 0.0f are accepted.
Optional.
Declaration
C#Copypublic float ScaleBottomRadius { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
ScaleDimensions
Gets or sets the dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
If not specified, the default is Vector3.One.
Applies to:
- PrimitiveVisualShapeType.Cube
- PrimitiveVisualShapeType.Octahedron
- PrimitiveVisualShapeType.BevelledCube
Each Vector3 parameter should be greater than or equal to 0.0f.
Optional.
Declaration
C#Copypublic Vector3 ScaleDimensions { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
API Level: 3
ScaleHeight
Gets or sets the scale of the height of a conic.
If not specified, the default is 3.0f.
Applies to:
- PrimitiveVisualShapeType.ConicalFrustrum
- PrimitiveVisualShapeType.Cone
- PrimitiveVisualShapeType.Cylinder
Only values greater than or equal to 0.0f are accepted.
Optional.
Declaration
C#Copypublic float ScaleHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
ScaleRadius
Gets or sets the scale of the radius of a cylinder.
If not specified, the default is 1.0f.
Applies to:
- PrimitiveVisualShapeType.Cylinder
Only values greater than or equal to 0.0f are accepted.
Optional.
Declaration
C#Copypublic float ScaleRadius { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
ScaleTopRadius
Gets or sets the scale of the radius of the top circle of a conical frustum.
If not specified, the default is 1.0f.
Applies to: - PrimitiveVisualShapeType.ConicalFrustrum
Only values greater than or equal to 0.0f are accepted.
Optional.
Declaration
C#Copypublic float ScaleTopRadius { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
Shape
Gets or sets the specific shape to render.
If not specified, the default is PrimitiveVisualShapeType.Sphere.
Optional.
Declaration
C#Copypublic PrimitiveVisualShapeType Shape { get; set; }
Property Value
Type | Description |
---|---|
PrimitiveVisualShapeType |
API Level: 3
Slices
Gets or sets the number of slices as you go around the shape.
For spheres and conical frustums, this determines how many divisions there are as you go around the object.
If not specified, the default is 128.
The range is from 1 to 255.
Optional.
Declaration
C#Copypublic int Slices { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Stacks
Gets or sets the number of stacks as you go down the shape.
For spheres, 'stacks' determines how many layers there are as you go down the object.
If not specified, the default is 128.
The range is from 1 to 255.
Optional.
Declaration
C#Copypublic int Stacks { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Methods
Declaration
C#Copyprotected override void ComposingPropertyMap()