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

Constant Summary

Constants inherited from TiogaElement

TiogaElement::StyleBaseOptions

Instance Attribute Summary collapse

Attributes inherited from TiogaElement

#hidden, #object_classes, #object_id, #object_parent, #parent

Instance Method Summary collapse

Methods inherited from TiogaElement

all_styles, base_style, #check_styled, define_style, #do, find_object, #get_style, #has_style?, inherited, #inspect, register_object, register_style, #setup_style, #style_class, style_class, style_name, #style_name, styled_classes, #update_style

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.



302
303
304
# File 'lib/ctioga2/graphics/elements/element.rb', line 302

def initialize()
  super()
end

Instance Attribute Details

#curve_styleObject

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



278
279
280
# File 'lib/ctioga2/graphics/elements/element.rb', line 278

def curve_style
  @curve_style
end

#datasetObject

The Data::Dataset object that should get plotted.



274
275
276
# File 'lib/ctioga2/graphics/elements/element.rb', line 274

def dataset
  @dataset
end

Instance Method Details

#clippedObject



292
293
294
# File 'lib/ctioga2/graphics/elements/element.rb', line 292

def clipped
  return @curve_style.clipped
end

#depthObject



298
299
300
# File 'lib/ctioga2/graphics/elements/element.rb', line 298

def depth
  return @curve_style.depth
end

#locationObject

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



286
287
288
# File 'lib/ctioga2/graphics/elements/element.rb', line 286

def location
  return @curve_style.location
end