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, find_objects, #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, counts, 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.



322
323
324
# File 'lib/ctioga2/graphics/elements/element.rb', line 322

def initialize()
  super()
end

Instance Attribute Details

#curve_styleObject

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



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

def curve_style
  @curve_style
end

#datasetObject

The Data::Dataset object that should get plotted.



294
295
296
# File 'lib/ctioga2/graphics/elements/element.rb', line 294

def dataset
  @dataset
end

Instance Method Details

#clippedObject



312
313
314
# File 'lib/ctioga2/graphics/elements/element.rb', line 312

def clipped
  return @curve_style.clipped
end

#depthObject



318
319
320
# File 'lib/ctioga2/graphics/elements/element.rb', line 318

def depth
  return @curve_style.depth
end

#locationObject

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



306
307
308
# File 'lib/ctioga2/graphics/elements/element.rb', line 306

def location
  return @curve_style.location
end