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
|
<!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: vtkLeaderActor2D</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_vtkleaderactor2d.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">vtkLeaderActor2D </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>vtkLeaderActor2D creates a leader with an optional label and arrows. (A leader is typically used to indicate distance between points.) vtkLeaderActor2D is a type of vtkActor2D; 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), whether to place arrows on one or both end points, and whether to label the leader. Also, this class has a special feature that allows curved leaders to be created by specifying a radius.</p>
<p>Use the vtkLeaderActor2D uses its superclass vtkActor2D instance variables Position and Position2 vtkCoordinates to place an instance of vtkLeaderActor2D (i.e., these two data members represent the start and end points of the leader). Using these vtkCoordinates you can specify the position of the leader in a variety of coordinate systems.</p>
<p>To control the appearance of the actor, use the superclasses vtkActor2D::vtkProperty2D and the vtkTextProperty objects associated with this actor.</p>
<p>To create an instance of class vtkLeaderActor2D, simply invoke its constructor as follows </p>
<pre class="fragment"> obj = vtkLeaderActor2D
</pre> <h1><a class="anchor" id="Methods"></a>
Methods</h1>
<p>The class vtkLeaderActor2D 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 vtkLeaderActor2D class. </p>
<ul>
<li>
<code>string = obj.GetClassName ()</code> </li>
<li>
<code>int = obj.IsA (string name)</code> </li>
<li>
<code>vtkLeaderActor2D = obj.NewInstance ()</code> </li>
<li>
<code>vtkLeaderActor2D = obj.SafeDownCast (vtkObject o)</code> </li>
<li>
<code>obj.SetRadius (double )</code> - Set/Get a radius which can be used to curve the leader. If a radius is specified whose absolute value is greater than one half the distance between the two points defined by the superclasses' Position and Position2 ivars, then the leader will be curved. A positive radius will produce a curve such that the center is to the right of the line from Position and Position2; a negative radius will produce a curve in the opposite sense. By default, the radius is set to zero and thus there is no curvature. Note that the radius is expresses as a multiple of the distance between (Position,Position2); this avoids issues relative to coordinate system transformations. </li>
<li>
<code>double = obj.GetRadius ()</code> - Set/Get a radius which can be used to curve the leader. If a radius is specified whose absolute value is greater than one half the distance between the two points defined by the superclasses' Position and Position2 ivars, then the leader will be curved. A positive radius will produce a curve such that the center is to the right of the line from Position and Position2; a negative radius will produce a curve in the opposite sense. By default, the radius is set to zero and thus there is no curvature. Note that the radius is expresses as a multiple of the distance between (Position,Position2); this avoids issues relative to coordinate system transformations. </li>
<li>
<code>obj.SetLabel (string )</code> - Set/Get the label for the leader. If the label is an empty string, then it will not be drawn. </li>
<li>
<code>string = obj.GetLabel ()</code> - Set/Get the label for the leader. If the label is an empty string, then it will not be drawn. </li>
<li>
<code>obj.SetLabelTextProperty (vtkTextProperty p)</code> - Set/Get the text property of the label. </li>
<li>
<code>vtkTextProperty = obj.GetLabelTextProperty ()</code> - Set/Get the text property of the label. </li>
<li>
<code>obj.SetLabelFactor (double )</code> - Set/Get the factor that controls the overall size of the fonts used to label the leader. </li>
<li>
<code>double = obj.GetLabelFactorMinValue ()</code> - Set/Get the factor that controls the overall size of the fonts used to label the leader. </li>
<li>
<code>double = obj.GetLabelFactorMaxValue ()</code> - Set/Get the factor that controls the overall size of the fonts used to label the leader. </li>
<li>
<code>double = obj.GetLabelFactor ()</code> - Set/Get the factor that controls the overall size of the fonts used to label the leader. </li>
<li>
<code>obj.SetArrowPlacement (int )</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>int = obj.GetArrowPlacementMinValue ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>int = obj.GetArrowPlacementMaxValue ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>int = obj.GetArrowPlacement ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>obj.SetArrowPlacementToNone ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>obj.SetArrowPlacementToPoint1 ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>obj.SetArrowPlacementToPoint2 ()</code> - Control whether arrow heads are drawn on the leader. Arrows may be drawn on one end, both ends, or not at all. </li>
<li>
<code>obj.SetArrowPlacementToBoth ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>obj.SetArrowStyle (int )</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>int = obj.GetArrowStyleMinValue ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>int = obj.GetArrowStyleMaxValue ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>int = obj.GetArrowStyle ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>obj.SetArrowStyleToFilled ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>obj.SetArrowStyleToOpen ()</code> - Control the appearance of the arrow heads. A solid arrow head is a filled triangle; a open arrow looks like a "V"; and a hollow arrow looks like a non-filled triangle. </li>
<li>
<code>obj.SetArrowStyleToHollow ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>obj.SetArrowLength (double )</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowLengthMinValue ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowLengthMaxValue ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowLength ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>obj.SetArrowWidth (double )</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowWidthMinValue ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowWidthMaxValue ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>double = obj.GetArrowWidth ()</code> - Specify the arrow length and base width (in normalized viewport coordinates). </li>
<li>
<code>obj.SetMinimumArrowSize (double )</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMinimumArrowSizeMinValue ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMinimumArrowSizeMaxValue ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMinimumArrowSize ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>obj.SetMaximumArrowSize (double )</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMaximumArrowSizeMinValue ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMaximumArrowSizeMaxValue ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>double = obj.GetMaximumArrowSize ()</code> - Limit the minimum and maximum size of the arrows. These values are expressed in pixels and clamp the minimum/maximum possible size for the width/length of the arrow head. (When clamped, the ratio between length and width is preserved.) </li>
<li>
<code>obj.SetAutoLabel (int )</code> - Enable auto-labelling. In this mode, the label is automatically updated based on distance (in world coordinates) between the two end points; or if a curved leader is being generated, the angle in degrees between the two points. </li>
<li>
<code>int = obj.GetAutoLabel ()</code> - Enable auto-labelling. In this mode, the label is automatically updated based on distance (in world coordinates) between the two end points; or if a curved leader is being generated, the angle in degrees between the two points. </li>
<li>
<code>obj.AutoLabelOn ()</code> - Enable auto-labelling. In this mode, the label is automatically updated based on distance (in world coordinates) between the two end points; or if a curved leader is being generated, the angle in degrees between the two points. </li>
<li>
<code>obj.AutoLabelOff ()</code> - Enable auto-labelling. In this mode, the label is automatically updated based on distance (in world coordinates) between the two end points; or if a curved leader is being generated, the angle in degrees between the two points. </li>
<li>
<code>obj.SetLabelFormat (string )</code> - Specify the format to use for auto-labelling. </li>
<li>
<code>string = obj.GetLabelFormat ()</code> - Specify the format to use for auto-labelling. </li>
<li>
<code>double = obj.GetLength ()</code> - Obtain the length of the leader if the leader is not curved, otherwise obtain the angle that the leader circumscribes. </li>
<li>
<code>double = obj.GetAngle ()</code> - Obtain the length of the leader if the leader is not curved, otherwise obtain the angle that the leader circumscribes. </li>
<li>
<code>int = obj.RenderOverlay (vtkViewport viewport)</code> - Methods required by vtkProp and vtkActor2D superclasses. </li>
<li>
<code>int = obj.RenderOpaqueGeometry (vtkViewport viewport)</code> - Methods required by vtkProp and vtkActor2D superclasses. </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> </li>
<li>
<code>obj.ShallowCopy (vtkProp prop)</code> </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:35 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>
|