Note. Any property will be applied to the last object { geometrical or node) that has been created. If the last object that was created is a node object, the property will be applied to all the geometrical objects related to this node.
Name field:
color
The body of the color should (but may not) contain 3 real values corresponding to the rgb values. If the rgb values are absent, the 1, 1, 1 values (white) are set by default. A 4th value can represent the blending (transparency) which is by default 1.0 (opaque).
Every object can have 3 color properties. Thus, a 5th value which must be an integer between 0 and 2, can indicate which of the 3 colors of the object will be set to this color. If this value is absent, the default color is the 0 one.
If you do not wish to set the blending, but want to set another color that the 0 one, you can put the rgb values between < and >. For example,
color {<1 1 0> 2}
will set the 3rd color of the object to yellow.
Name field:
ccoord
and it only applies to objects inheriting from the class DVpick_property.
This property sets the coordinate of the point that will be used as the color of the object in that point. The value of the color coordinate in each point will be used to compute the color from a color mapping. The minimal value of the color coordinate for the object will be set to the first color of the color mapping, and the maximal value to the last color of the mapping. All the other values are scaled in between.
ccoord { 5 }
If the body of the color coordinate is empty, then the color coordinate is set by default to 4. Note that at the creation of the object, this value is not set, and the object uses the general color property.
Name field:
color_map
The color map properties defines a color map and attaches it to the object inside whose body it is.
The color map is defined by a list of real numbers and a list of color. The list of real number can be shorter than the list of colors, in which case it will be completed by default as follows:
0 0.2 0.5this list will be completed as:
0 0.2 0.5 0.8 1.1
1.5will be completed as:
1.5 2.5 3.5 4.5 5.5
0 1 2 3 4
The colors in the color list have the same syntax as the color property, without the color choose (the 5th value in the color property) has no meaning and will be ignored.
If the color map property is empty, it will be set by default to the following color map:
color_map {
0.0 0.25 0.5 0.75 1.0
color {0 0 1}
color {0 1 1}
color {0 1 0}
color {1 1 0}
color {1 0 0}}
color_map {
color {1 1 0}
color {1 0 0}}
Name field:
xyz
and it only applies to objects inheriting from the class DVpick_property.
This property sets the indexes of the x y z coordinates of the drawn points, if the data points have more than 3 coordinates.
The body of this property can contain 3 values corresponding to the coordinates of the points which will be used for x, y and z coordinates of the image. If these values are not present, the coordinates are set to 0, 1 and 2 by default, which has no effect as they already have these values when the object is constructed.
xyz { 1 0 2 }
This example is just a change of base.
Name field:
gcomp
This property sets the complexity of the geometry for the object that contains this property in its definition. The body of the geometry complexity can contain an integer value from 1 to 9 signifying the complexity of the geometry. If this value is missing, the default value is 7.
Name field:
lcomp
This property sets the complexity of the light for the object that contains this property in its definition. The body of the light complexity can contain an integer value from 1 to 9 signifying the complexity of the light. If this value is missing, the default value is 7.
Name field:
rotate
This property sets the rotation of the object. It has 4 parameters, the first 3 composing the rotation axis, and the forth being the rotation angle. A fifth optional parameter with the token radians can specify if the angle is given in radians. If this parameter is absent, the angle is by default in degrees.
If there are 0 < a number of real values < 4 in the rotation body, then they will receive the '0.0' value by default. As the values are set in order, then the angle will surely receive the 0.0 value. This means that the rotation will have no effect.
If no real value is present in the rotation body, then the 0.0, 1.0, 0.0, 90 values will be set by default. This means a rotation of 90 degrees around the 0y axis.
rotate { 0 0 1 1.5708 radians }
This is a rotation of around 90 degrees ( pi / 2 in radians) around the 0z axis.
Name field:
scale
The body of the scaling should ( but may not) contain 3 real values corresponding to the xyz values. If the xyz values are absent, the 1, 1, 1 values ( no scaling) are set by default.
Note. The scaling only applies to object position, and does not affect their shape. The only exception is the lines object which has a ribbon. The length of the ribbon is scaled.
Name field:
translate
The body of the translation should ( but may not) contain 3 real values corresponding to the xyz coordinates of the translation. If these values are absent, the default null translation ( 0, 0, 0) is set.
Name field:
width
The width property is a special one, because any object can have a width, but it effects are various from an object to another.
The width has two component, 0 and 1. The body of the width can contain a real value corresponding to the width and a a second argument representing the location value telling which of the components of the width will be set. If the first value is missing, it is set by default to 1.0. If the second value is missing, it is set by default to 0. The second argument can not appear without the first one.
width { 1.2 1}
In this example, we set the second width of an object to the value 1.2.
For the axes object, the first component of the width represents the width of the line, in number of pixels. The second component scales the length of the 3 directions.
For the framed lines and the lines objects, the first component of the width represents:
The second component of the width represents the ribbon width if the ribbon status of the object is DV_RIBBON. For the framed lines, this value scales all the ribbons of the object.
For the points object, the width defines the number of pixels by which each point will be drawn.
For the spheres object, the first component of the width is the ray of the spheres. The second component of the width has no meaning.
For the boxes object, the width will soon scale the z coordinate, and can be used when the z coordinate is missing ( data has only 2 coordinates) and the z coordinate is alternatively set to 0 and 1.