Module: CTioga2::Graphics::Types

Defined in:
lib/ctioga2/graphics/types/boxes.rb,
lib/ctioga2/graphics/types/fill.rb,
lib/ctioga2/graphics/types/grid.rb,
lib/ctioga2/graphics/types/point.rb,
lib/ctioga2/graphics/types/location.rb,
lib/ctioga2/graphics/types/bijection.rb,
lib/ctioga2/graphics/types/boundaries.rb,
lib/ctioga2/graphics/types/dimensions.rb

Overview

A module holding different data types useful for interacting with Tioga

Defined Under Namespace

Classes: AlignedPoint, BaseCoordinate, Bijection, Boundaries, Box, Dimension, FillUntil, GridBox, GridLayout, MarginsBox, PlotLocation, Point, PointBasedBox, Rect, SimpleRange

Constant Summary collapse

FillType =

Something meant to be fed to PlotStyle#get_axis_style

CmdType.new('fill-until', { :type => :function_based,
                      :class => Graphics::Types::FillUntil
                                 }, <<EOD)
How to close the path of a curve to fill it. Can be:
 * @bottom@, @top@, @left@, @right@ to fill until the named side of the
   plot
 * @axis@ or @xaxis@ to fill until the X axis (ie y = 0)
 * @yaxis@ to fill until the Y axis (ie x = 0)
 * @x:value@ or @x=value@ to fill until the given X value
 * @y:value@ or @y=value@ to fill until the given Y value
 * @close@ for just closing the path (doesn't look good in general)
 * @none@ for no fill
EOD
LocationType =

Something meant to be fed to PlotStyle#get_axis_style

CmdType.new('location', { :type => :function_based,
                                 :class => Graphics::Types::PlotLocation
                                 }, <<EOD)
A position on the plot, referenced with respect to the sides. Can be:
 * @left@
 * @right@
 * @top@
 * @bottom@
 * @x0@, for the @x = 0@ position
 * @y0@, for the @y = 0@ position

In addition, there will one day be the possibility to specify an 
offset from these locations. But that is still something to do.
EOD