1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FreeMat: vtkAxisActor2D</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FreeMat
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="pages.html"><span>Related Pages</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('vtkrendering_vtkaxisactor2d.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">vtkAxisActor2D </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>Section: <a class="el" href="sec_vtkrendering.html">Visualization Toolkit Rendering Classes</a> </p>
<h1><a class="anchor" id="Usage"></a>
Usage</h1>
<p>vtkAxisActor2D creates an axis with tick marks, labels, and/or a title, depending on the particular instance variable settings. vtkAxisActor2D is a 2D actor; that is, it is drawn on the overlay plane and is not occluded by 3D geometry. To use this class, you typically specify two points defining the start and end points of the line (x-y definition using vtkCoordinate class), the number of labels, and the data range (min,max). You can also control what parts of the axis are visible including the line, the tick marks, the labels, and the title. You can also specify the label format (a printf style format).</p>
<p>This class decides what font size to use and how to locate the labels. It also decides how to create reasonable tick marks and labels. The number of labels and the range of values may not match the number specified, but should be close.</p>
<p>Labels are drawn on the "right" side of the axis. The "right" side is the side of the axis on the right as you move from Position to Position2. The way the labels and title line up with the axis and tick marks depends on whether the line is considered horizontal or vertical.</p>
<p>The vtkActor2D instance variables Position and Position2 are instances of vtkCoordinate. Note that the Position2 is an absolute position in that class (it was by default relative to Position in vtkActor2D).</p>
<p>What this means is that you can specify the axis in a variety of coordinate systems. Also, the axis does not have to be either horizontal or vertical. The tick marks are created so that they are perpendicular to the axis.</p>
<p>Set the text property/attributes of the title and the labels through the vtkTextProperty objects associated to this actor.</p>
<p>To create an instance of class vtkAxisActor2D, simply invoke its constructor as follows </p>
<pre class="fragment"> obj = vtkAxisActor2D
</pre> <h1><a class="anchor" id="Methods"></a>
Methods</h1>
<p>The class vtkAxisActor2D has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, <code>obj</code> is an instance of the vtkAxisActor2D class. </p>
<ul>
<li>
<code>string = obj.GetClassName ()</code> </li>
<li>
<code>int = obj.IsA (string name)</code> </li>
<li>
<code>vtkAxisActor2D = obj.NewInstance ()</code> </li>
<li>
<code>vtkAxisActor2D = obj.SafeDownCast (vtkObject o)</code> </li>
<li>
<code>vtkCoordinate = obj.GetPoint1Coordinate ()</code> - Specify the position of the first point defining the axis. Note: backward compatibility only, use vtkActor2D's Position instead. </li>
<li>
<code>obj.SetPoint1 (double x[2])</code> - Specify the position of the first point defining the axis. Note: backward compatibility only, use vtkActor2D's Position instead. </li>
<li>
<code>obj.SetPoint1 (double x, double y)</code> - Specify the position of the first point defining the axis. Note: backward compatibility only, use vtkActor2D's Position instead. </li>
<li>
<code>vtkCoordinate = obj.GetPoint2Coordinate ()</code> - Specify the position of the second point defining the axis. Note that the order from Point1 to Point2 controls which side the tick marks are drawn on (ticks are drawn on the right, if visible). Note: backward compatibility only, use vtkActor2D's Position2 instead. </li>
<li>
<code>obj.SetPoint2 (double x[2])</code> - Specify the position of the second point defining the axis. Note that the order from Point1 to Point2 controls which side the tick marks are drawn on (ticks are drawn on the right, if visible). Note: backward compatibility only, use vtkActor2D's Position2 instead. </li>
<li>
<code>obj.SetPoint2 (double x, double y)</code> - Specify the position of the second point defining the axis. Note that the order from Point1 to Point2 controls which side the tick marks are drawn on (ticks are drawn on the right, if visible). Note: backward compatibility only, use vtkActor2D's Position2 instead. </li>
<li>
<code>obj.SetRange (double , double )</code> - Specify the (min,max) axis range. This will be used in the generation of labels, if labels are visible. </li>
<li>
<code>obj.SetRange (double a[2])</code> - Specify the (min,max) axis range. This will be used in the generation of labels, if labels are visible. </li>
<li>
<code>double = obj. GetRange ()</code> - Specify the (min,max) axis range. This will be used in the generation of labels, if labels are visible. </li>
<li>
<code>obj.SetNumberOfLabels (int )</code> - Set/Get the number of annotation labels to show. </li>
<li>
<code>int = obj.GetNumberOfLabelsMinValue ()</code> - Set/Get the number of annotation labels to show. </li>
<li>
<code>int = obj.GetNumberOfLabelsMaxValue ()</code> - Set/Get the number of annotation labels to show. </li>
<li>
<code>int = obj.GetNumberOfLabels ()</code> - Set/Get the number of annotation labels to show. </li>
<li>
<code>obj.SetLabelFormat (string )</code> - Set/Get the format with which to print the labels on the scalar bar. </li>
<li>
<code>string = obj.GetLabelFormat ()</code> - Set/Get the format with which to print the labels on the scalar bar. </li>
<li>
<code>obj.SetAdjustLabels (int )</code> - Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. The adjustment is based in the Range instance variable. Call GetAdjustedRange and GetAdjustedNumberOfLabels to get the adjusted range and number of labels. </li>
<li>
<code>int = obj.GetAdjustLabels ()</code> - Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. The adjustment is based in the Range instance variable. Call GetAdjustedRange and GetAdjustedNumberOfLabels to get the adjusted range and number of labels. </li>
<li>
<code>obj.AdjustLabelsOn ()</code> - Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. The adjustment is based in the Range instance variable. Call GetAdjustedRange and GetAdjustedNumberOfLabels to get the adjusted range and number of labels. </li>
<li>
<code>obj.AdjustLabelsOff ()</code> - Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. The adjustment is based in the Range instance variable. Call GetAdjustedRange and GetAdjustedNumberOfLabels to get the adjusted range and number of labels. </li>
<li>
<code>obj.GetAdjustedRange (double _arg[2])</code> - Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. The adjustment is based in the Range instance variable. Call GetAdjustedRange and GetAdjustedNumberOfLabels to get the adjusted range and number of labels. </li>
<li>
<code>int = obj.GetAdjustedNumberOfLabels ()</code> - Set/Get the title of the scalar bar actor, </li>
<li>
<code>obj.SetTitle (string )</code> - Set/Get the title of the scalar bar actor, </li>
<li>
<code>string = obj.GetTitle ()</code> - Set/Get the title of the scalar bar actor, </li>
<li>
<code>obj.SetTitleTextProperty (vtkTextProperty p)</code> - Set/Get the title text property. </li>
<li>
<code>vtkTextProperty = obj.GetTitleTextProperty ()</code> - Set/Get the title text property. </li>
<li>
<code>obj.SetLabelTextProperty (vtkTextProperty p)</code> - Set/Get the labels text property. </li>
<li>
<code>vtkTextProperty = obj.GetLabelTextProperty ()</code> - Set/Get the labels text property. </li>
<li>
<code>obj.SetTickLength (int )</code> - Set/Get the length of the tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetTickLengthMinValue ()</code> - Set/Get the length of the tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetTickLengthMaxValue ()</code> - Set/Get the length of the tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetTickLength ()</code> - Set/Get the length of the tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>obj.SetNumberOfMinorTicks (int )</code> - Number of minor ticks to be displayed between each tick. Default is 0. </li>
<li>
<code>int = obj.GetNumberOfMinorTicksMinValue ()</code> - Number of minor ticks to be displayed between each tick. Default is 0. </li>
<li>
<code>int = obj.GetNumberOfMinorTicksMaxValue ()</code> - Number of minor ticks to be displayed between each tick. Default is 0. </li>
<li>
<code>int = obj.GetNumberOfMinorTicks ()</code> - Number of minor ticks to be displayed between each tick. Default is 0. </li>
<li>
<code>obj.SetMinorTickLength (int )</code> - Set/Get the length of the minor tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetMinorTickLengthMinValue ()</code> - Set/Get the length of the minor tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetMinorTickLengthMaxValue ()</code> - Set/Get the length of the minor tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>int = obj.GetMinorTickLength ()</code> - Set/Get the length of the minor tick marks (expressed in pixels or display coordinates). </li>
<li>
<code>obj.SetTickOffset (int )</code> - Set/Get the offset of the labels (expressed in pixels or display coordinates). The offset is the distance of labels from tick marks or other objects. </li>
<li>
<code>int = obj.GetTickOffsetMinValue ()</code> - Set/Get the offset of the labels (expressed in pixels or display coordinates). The offset is the distance of labels from tick marks or other objects. </li>
<li>
<code>int = obj.GetTickOffsetMaxValue ()</code> - Set/Get the offset of the labels (expressed in pixels or display coordinates). The offset is the distance of labels from tick marks or other objects. </li>
<li>
<code>int = obj.GetTickOffset ()</code> - Set/Get the offset of the labels (expressed in pixels or display coordinates). The offset is the distance of labels from tick marks or other objects. </li>
<li>
<code>obj.SetAxisVisibility (int )</code> - Set/Get visibility of the axis line. </li>
<li>
<code>int = obj.GetAxisVisibility ()</code> - Set/Get visibility of the axis line. </li>
<li>
<code>obj.AxisVisibilityOn ()</code> - Set/Get visibility of the axis line. </li>
<li>
<code>obj.AxisVisibilityOff ()</code> - Set/Get visibility of the axis line. </li>
<li>
<code>obj.SetTickVisibility (int )</code> - Set/Get visibility of the axis tick marks. </li>
<li>
<code>int = obj.GetTickVisibility ()</code> - Set/Get visibility of the axis tick marks. </li>
<li>
<code>obj.TickVisibilityOn ()</code> - Set/Get visibility of the axis tick marks. </li>
<li>
<code>obj.TickVisibilityOff ()</code> - Set/Get visibility of the axis tick marks. </li>
<li>
<code>obj.SetLabelVisibility (int )</code> - Set/Get visibility of the axis labels. </li>
<li>
<code>int = obj.GetLabelVisibility ()</code> - Set/Get visibility of the axis labels. </li>
<li>
<code>obj.LabelVisibilityOn ()</code> - Set/Get visibility of the axis labels. </li>
<li>
<code>obj.LabelVisibilityOff ()</code> - Set/Get visibility of the axis labels. </li>
<li>
<code>obj.SetTitleVisibility (int )</code> - Set/Get visibility of the axis title. </li>
<li>
<code>int = obj.GetTitleVisibility ()</code> - Set/Get visibility of the axis title. </li>
<li>
<code>obj.TitleVisibilityOn ()</code> - Set/Get visibility of the axis title. </li>
<li>
<code>obj.TitleVisibilityOff ()</code> - Set/Get visibility of the axis title. </li>
<li>
<code>obj.SetTitlePosition (double )</code> - Set/Get position of the axis title. 0 is at the start of the axis whereas 1 is at the end. </li>
<li>
<code>double = obj.GetTitlePosition ()</code> - Set/Get position of the axis title. 0 is at the start of the axis whereas 1 is at the end. </li>
<li>
<code>obj.SetFontFactor (double )</code> - Set/Get the factor that controls the overall size of the fonts used to label and title the axes. This ivar used in conjunction with the LabelFactor can be used to control font sizes. </li>
<li>
<code>double = obj.GetFontFactorMinValue ()</code> - Set/Get the factor that controls the overall size of the fonts used to label and title the axes. This ivar used in conjunction with the LabelFactor can be used to control font sizes. </li>
<li>
<code>double = obj.GetFontFactorMaxValue ()</code> - Set/Get the factor that controls the overall size of the fonts used to label and title the axes. This ivar used in conjunction with the LabelFactor can be used to control font sizes. </li>
<li>
<code>double = obj.GetFontFactor ()</code> - Set/Get the factor that controls the overall size of the fonts used to label and title the axes. This ivar used in conjunction with the LabelFactor can be used to control font sizes. </li>
<li>
<code>obj.SetLabelFactor (double )</code> - Set/Get the factor that controls the relative size of the axis labels to the axis title. </li>
<li>
<code>double = obj.GetLabelFactorMinValue ()</code> - Set/Get the factor that controls the relative size of the axis labels to the axis title. </li>
<li>
<code>double = obj.GetLabelFactorMaxValue ()</code> - Set/Get the factor that controls the relative size of the axis labels to the axis title. </li>
<li>
<code>double = obj.GetLabelFactor ()</code> - Set/Get the factor that controls the relative size of the axis labels to the axis title. </li>
<li>
<code>int = obj.RenderOverlay (vtkViewport viewport)</code> - Draw the axis. </li>
<li>
<code>int = obj.RenderOpaqueGeometry (vtkViewport viewport)</code> - Draw the axis. </li>
<li>
<code>int = obj.RenderTranslucentPolygonalGeometry (vtkViewport )</code> - Does this prop have some translucent polygonal geometry? </li>
<li>
<code>int = obj.HasTranslucentPolygonalGeometry ()</code> - Does this prop have some translucent polygonal geometry? </li>
<li>
<code>obj.ReleaseGraphicsResources (vtkWindow )</code> - Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release. </li>
<li>
<code>obj.SetSizeFontRelativeToAxis (int )</code> - Specify whether to size the fonts relative to the viewport or relative to length of the axis. By default, fonts are resized relative to the axis. </li>
<li>
<code>int = obj.GetSizeFontRelativeToAxis ()</code> - Specify whether to size the fonts relative to the viewport or relative to length of the axis. By default, fonts are resized relative to the axis. </li>
<li>
<code>obj.SizeFontRelativeToAxisOn ()</code> - Specify whether to size the fonts relative to the viewport or relative to length of the axis. By default, fonts are resized relative to the axis. </li>
<li>
<code>obj.SizeFontRelativeToAxisOff ()</code> - Specify whether to size the fonts relative to the viewport or relative to length of the axis. By default, fonts are resized relative to the axis. </li>
<li>
<code>obj.ShallowCopy (vtkProp prop)</code> - Shallow copy of an axis actor. Overloads the virtual vtkProp method. </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="index.html">FreeMat Documentation</a></li><li class="navelem"><a class="el" href="sec_vtkrendering.html">Visualization Toolkit Rendering Classes</a></li>
<li class="footer">Generated on Thu Jul 25 2013 17:18:34 for FreeMat by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
</ul>
</div>
</body>
</html>
|