Class: CTioga2::Graphics::Elements::PlotBasedElement

Inherits:
TiogaElement
  • Object
show all
Defined in:
lib/ctioga2/graphics/elements/element.rb

Overview

The base class for all dataset-based elements

Direct Known Subclasses

Curve2D, Parametric2D, XYZContour, XYZMap

Instance Attribute Summary collapse

Attributes inherited from TiogaElement

#parent

Instance Method Summary collapse

Methods inherited from TiogaElement

#do, #inspect

Methods included from Log

context, debug, error, fatal, #format_exception, #identify, info, init_logger, log_to, logger, set_level, #spawn, warn

Constructor Details

#initializePlotBasedElement

Returns a new instance of PlotBasedElement.



130
131
132
# File 'lib/ctioga2/graphics/elements/element.rb', line 130

def initialize()
  super()
end

Instance Attribute Details

#curve_styleObject

A Styles::CurveStyle object saying how the curve should be drawn.



108
109
110
# File 'lib/ctioga2/graphics/elements/element.rb', line 108

def curve_style
  @curve_style
end

#datasetObject

The Data::Dataset object that should get plotted.



104
105
106
# File 'lib/ctioga2/graphics/elements/element.rb', line 104

def dataset
  @dataset
end

Instance Method Details

#clippedObject



120
121
122
# File 'lib/ctioga2/graphics/elements/element.rb', line 120

def clipped
  return @curve_style.clipped
end

#depthObject



126
127
128
# File 'lib/ctioga2/graphics/elements/element.rb', line 126

def depth
  return @curve_style.depth
end

#locationObject

Returns the LocationStyle object of the curve. Returns the one from #curve_style.



114
115
116
# File 'lib/ctioga2/graphics/elements/element.rb', line 114

def location
  return @curve_style.location
end