Draw one or multiple polygon target at once.
|
Property | xCenter = 0 |
| an x-coordinate for each target (degrees visual angle, centered)
|
|
Property | yCenter = 0 |
| a y-coordinate for each target (degrees visual angle, centered)
|
|
Property | width = 1 |
| the width of each target (degrees visual angle)
|
|
Property | height = 1 |
| the height of each target (degrees visual angle)
|
|
Property | nSides = 30 |
| the number of sides for each target polygon (at least 3)
|
|
Property | isInscribed = true |
| whether polygons are inscribed(true) or circumscribed(false)
|
|
Property | x = 0 |
| vertex x-positions (x, y, and z must be scalar or match sizes)
|
|
Property | y = 0 |
| vertex y-positions (x, y, and z must be scalar or match sizes)
|
|
Property | z = 0 |
| vertex z-positions (x, y, and z must be scalar or match sizes)
|
|
Property | colors = [1 1 1] |
| color map to use for vertices [r g b a; r g b a; etc. More...
|
|
Property | isColorByVertexGroup = false |
| whether to color vertices in groups(true) or individually(false)
|
|
Property | indices = [] |
| array of indices for selecting, reusing, and reordering vertices More...
|
|
Property | pixelSize = 1 |
| width in pixels for points or lines
|
|
Property | isSmooth = false |
| whether to use anti-aliasing for primitives
|
|
Property | primitive = 0 |
| index to choose OpenGL vertex drawing mode More...
|
|
Property | usageHint = 3 |
| index to choose usage "hint" for OpenGL buffers More...
|
|
Property | translation = [] |
| optional translation to apply to vertex positions [tX tY tZ] More...
|
|
Property | rotation = [] |
| optional rotation of vertices about coordinate axes [rX rY rZ] More...
|
|
Property | scaling = [] |
| optional scaling to apply to vertex positions [sX sY sZ] More...
|
|
Property | isVisible = true |
| true or false, whether to draw() this object
|
|
|
Property | verticesPerTarget |
| how many vertices make up each target (same for all targets)
|
|
Property | attribBufferInfo = [] |
| identifier and other info for the OpenGL vertex attribute buffer
|
|
Property | isAttribBufferStale = true |
| whether or not the attribute buffer is out of date
|
|
Property | indexBufferInfo = [] |
| identifier and other info for the OpenGL vertex index buffer
|
|
Property | isIndexBufferStale = true |
| whether or not the index buffer is out of date
|
|
Property | colorBufferInfo = [] |
| identifier and other info for the OpenGL vertex color buffer
|
|
Property | isColorBufferStale = true |
| whether or not the color buffer is out of date
|
|
Property | smoothMap |
| map primitive integers to dotsMglSmoothness() switches
|
|
|
self | dotsDrawableTargets () |
| Constructor takes no arguments.
|
|
| set_xCenter (self, xCenter) |
| Keep track of polygon changes.
|
|
| set_yCenter (self, yCenter) |
| Keep track of polygon changes.
|
|
| set_width (self, width) |
| Keep track of polygon changes.
|
|
| set_height (self, height) |
| Keep track of polygon changes.
|
|
| set_nSides (self, nSides) |
| Keep track of polygon changes.
|
|
| set_isInscribed (self, isInscribed) |
| Keep track of polygon changes.
|
|
self | dotsDrawableVertices () |
| Constructor takes no arguments.
|
|
| delete (self) |
| Release OpenGL resources. More...
|
|
| set_x (self, x) |
| Keep track of required buffer updates.
|
|
| set_y (self, y) |
| Keep track of required buffer updates.
|
|
| set_z (self, z) |
| Keep track of required buffer updates.
|
|
| set_indices (self, indices) |
| Keep track of required buffer updates.
|
|
| set_colors (self, colors) |
| Keep track of required buffer updates.
|
|
| set_isColorByVertexGroup (self, isColorByVertexGroup) |
| Keep track of required buffer updates.
|
|
nVertices | getNVertices (self) |
| Calculate number of vertices from x, y, and z.
|
|
| prepareToDrawInWindow (self) |
| Create fresh OpenGL buffer objects.
|
|
| draw (self) |
| Draw vertices from OpenGL buffer objects.
|
|
self | dotsDrawable () |
| Constructor takes no arguments.
|
|
| prepareToDrawInWindow (self) |
| Do any pre-draw setup that requires an OpenGL drawing window.
|
|
| mayDrawNow (self) |
| Draw() or not, depending on isVisible and possibly other factors.
|
|
| draw (self) |
| Subclass must redefine draw() to draw graphics.
|
|
| show (self) |
| Shorthand to set isVisible=true.
|
|
| hide (self) |
| Shorthand to set isVisible=false.
|
|