SheafSystem  0.0.0.0
tool::vtk_poly_data_builder Class Reference

Creates a vtkPolyData from sheaf field objects. More...

#include <vtk_poly_data_builder.h>

Inheritance diagram for tool::vtk_poly_data_builder:
sheaf::any

Public Types

typedef sheaf::size_type size_type
 
typedef sec_vd::dof_type dof_type
 

Public Member Functions

virtual bool is_ancestor_of (const any *other) const
 Conformance test; true if other conforms to this. More...
 
virtual vtk_poly_data_builderclone () const
 Virtual constructor, makes a new instance of the same type as this. More...
 
vtk_poly_data_builderoperator= (const vtk_poly_data_builder &xother)
 Assignment operator. More...
 
virtual bool invariant () const
 Class invariant. More...
 
 vtk_poly_data_builder (const vtk_poly_data_builder &xother)
 Copy constructor. More...
 
virtual ~vtk_poly_data_builder ()
 Destructor. More...
 
 vtk_poly_data_builder (namespace_poset &xns)
 Creates an instance for fields in namespace xns. More...
 
vtkPolyData * build (const sec_vd &xcoords, const sec_vd &xproperty)
 Builds a vtkPolyData from xcoords and xproperty. More...
 
vtkPolyData * build (const sec_vd &xcoords)
 Builds a vtkPolyData from xcoords only. More...
 
void build_pa (const sec_vd &xcoords, const sec_vd &xproperty, vtkPolyData &xresult)
 Builds a vtkPolyData from xcoords and xproperty (pre-allocated version). More...
 
void build_pa (const sec_vd &xcoords, vtkPolyData &xresult)
 Builds a vtkPolyData from xcoords only with no property (pre-allocated version). The result is a reprecentation for the mesh only. More...
 
void build_file (const sec_vd &xcoords, const sec_vd &xproperty, const std::string &xvtk_file_name, bool xis_ascii=true)
 Builds a vtk file representation of a vtkPolyData from xcoords and xproperty with file name xvtk_file_name. If xis_ascii is true, write an ascii (text) file; otherwise write a binary file. More...
 
void build_file (const sec_vd &xcoords, const std::string &xvtk_file_name, bool xis_ascii=true)
 Builds a vtk file representation of a vtkPolyData from xcoords only with file name xvtk_file_name. If xis_ascii is true, write an ascii (text) file; otherwise write a binary file. More...
 
void construct_property (const sec_vd &xproperty, vtkPolyData &xresult)
 Construct the VTK "mesh" (vtkPolyData) object. More...
 
- Public Member Functions inherited from sheaf::any
bool is_same_type (const any *other) const
 True if other is the same type as this. More...
 
virtual ~any ()
 Destructor. More...
 
bool invariant_check () const
 True if invariant checking is enabled. More...
 
void enable_invariant_check () const
 Enable invariant checking. More...
 
void disable_invariant_check () const
 Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More...
 
int disable_invariance_check_request_depth () const
 Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More...
 

Additional Inherited Members

- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 

Detailed Description

Creates a vtkPolyData from sheaf field objects.

Definition at line 73 of file vtk_poly_data_builder.h.

Constructor & Destructor Documentation

◆ vtk_poly_data_builder() [1/2]

tool::vtk_poly_data_builder::vtk_poly_data_builder ( const vtk_poly_data_builder xother)

Copy constructor.

Not Implemented.

Postcondition

Definition at line 159 of file vtk_poly_data_builder.cc.

References ~vtk_poly_data_builder().

◆ ~vtk_poly_data_builder()

tool::vtk_poly_data_builder::~vtk_poly_data_builder ( )
virtual

Destructor.

Definition at line 181 of file vtk_poly_data_builder.cc.

Referenced by vtk_poly_data_builder().

◆ vtk_poly_data_builder() [2/2]

tool::vtk_poly_data_builder::vtk_poly_data_builder ( namespace_poset xns)

Creates an instance for fields in namespace xns.

Postcondition

Definition at line 200 of file vtk_poly_data_builder.cc.

References build_file().

Member Function Documentation

◆ build() [1/2]

vtkPolyData * tool::vtk_poly_data_builder::build ( const sec_vd xcoords,
const sec_vd xproperty 
)

Builds a vtkPolyData from xcoords and xproperty.

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3
  • xproperty.state_is_read_accessible()
  • xproperty.schema().base_space().is_same_state(&xcoords.schema().base_space())
  • xproperty.schema().evaluation().is_same_state(&xcoords.schema().evaluation())

Definition at line 331 of file vtk_poly_data_builder.cc.

References fiber_bundle::section_space_schema_member::base_space(), sheaf::schema_poset_member::conforms_to(), fiber_bundle::section_space_schema_member::df(), fiber_bundle::section_space_schema_member::evaluation(), sheaf::poset_component::is_same_state(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), and sheaf::read_write_monitor_handle::state_is_read_accessible().

Referenced by build_file().

◆ build() [2/2]

vtkPolyData * tool::vtk_poly_data_builder::build ( const sec_vd xcoords)

Builds a vtkPolyData from xcoords only.

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3

Definition at line 361 of file vtk_poly_data_builder.cc.

References fiber_bundle::section_space_schema_member::base_space(), build_pa(), sheaf::schema_poset_member::conforms_to(), fiber_bundle::section_space_schema_member::df(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), and sheaf::read_write_monitor_handle::state_is_read_accessible().

◆ build_file() [1/2]

void tool::vtk_poly_data_builder::build_file ( const sec_vd xcoords,
const sec_vd xproperty,
const std::string &  xvtk_file_name,
bool  xis_ascii = true 
)

Builds a vtk file representation of a vtkPolyData from xcoords and xproperty with file name xvtk_file_name. If xis_ascii is true, write an ascii (text) file; otherwise write a binary file.

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3
  • xproperty.state_is_read_accessible()
  • xproperty.schema().base_space().is_same_state(&xcoords.schema().base_space())
  • xproperty.schema().evaluation().is_same_state(&xcoords.schema().evaluation())
  • !xvtk_file_name.empty()

Definition at line 226 of file vtk_poly_data_builder.cc.

References fiber_bundle::section_space_schema_member::base_space(), sheaf::schema_poset_member::conforms_to(), fiber_bundle::section_space_schema_member::df(), fiber_bundle::section_space_schema_member::evaluation(), sheaf::poset_component::is_same_state(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), and sheaf::read_write_monitor_handle::state_is_read_accessible().

Referenced by vtk_poly_data_builder().

◆ build_file() [2/2]

void tool::vtk_poly_data_builder::build_file ( const sec_vd xcoords,
const std::string &  xvtk_file_name,
bool  xis_ascii = true 
)

Builds a vtk file representation of a vtkPolyData from xcoords only with file name xvtk_file_name. If xis_ascii is true, write an ascii (text) file; otherwise write a binary file.

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3
  • !xvtk_file_name.empty()

Definition at line 280 of file vtk_poly_data_builder.cc.

References fiber_bundle::section_space_schema_member::base_space(), build(), sheaf::schema_poset_member::conforms_to(), fiber_bundle::section_space_schema_member::df(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), and sheaf::read_write_monitor_handle::state_is_read_accessible().

◆ build_pa() [1/2]

void tool::vtk_poly_data_builder::build_pa ( const sec_vd xcoords,
const sec_vd xproperty,
vtkPolyData &  xresult 
)

Builds a vtkPolyData from xcoords and xproperty (pre-allocated version).

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3
  • xproperty.state_is_read_accessible()
  • xproperty.schema().base_space().is_same_state(&xcoords.schema().base_space())
  • xproperty.schema().evaluation().is_same_state(&xcoords.schema().evaluation())
  • &xresult != 0

Definition at line 388 of file vtk_poly_data_builder.cc.

References fiber_bundle::section_space_schema_member::base_space(), sheaf::schema_poset_member::conforms_to(), fiber_bundle::section_space_schema_member::df(), fiber_bundle::section_space_schema_member::evaluation(), sheaf::poset_component::is_same_state(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), and sheaf::read_write_monitor_handle::state_is_read_accessible().

Referenced by build().

◆ build_pa() [2/2]

void tool::vtk_poly_data_builder::build_pa ( const sec_vd xcoords,
vtkPolyData &  xresult 
)

Builds a vtkPolyData from xcoords only with no property (pre-allocated version). The result is a reprecentation for the mesh only.

Precondition
  • xcoords.state_is_read_accessible()
  • xcoords.schema().base_space().schema().conforms_to(base_space_member::standard_schema_path())
  • xcoords.schema().df() <= 3
  • &xresult != 0

Definition at line 425 of file vtk_poly_data_builder.cc.

References sheaf::abstract_poset_member::attach_to_state(), fiber_bundle::section_space_schema_member::base_space(), sheaf::schema_poset_member::conforms_to(), construct_property(), sheaf::auto_block< T, S >::ct(), sheaf::poset_component::detach_from_state(), fiber_bundle::section_space_schema_member::df(), fiber_bundle::sec_rep_space_member::df(), fiber_bundle::section_space_schema_member::discretization(), fiber_bundle::section_space_schema_member::discretization_ct(), fiber_bundle::eval_iterator::discretization_members(), fiber_bundle::section_space_schema_member::evaluation_ct(), sheaf::poset_state_handle::get_read_access(), sheaf::subposet::id_space(), sheaf::poset_state_handle::member_index_ub(), sheaf::abstract_poset_member::name(), sheaf::index_space_handle::pod(), sheaf::scoped_index::pod(), fiber_bundle::base_space_member::prototypes_poset_name(), sheaf::poset_state_handle::release_access(), sheaf::total_poset_member::schema(), fiber_bundle::sec_rep_space_member::schema(), fiber_bundle::base_space_member::standard_schema_path(), sheaf::read_write_monitor_handle::state_is_read_accessible(), and fiber_bundle::base_space_member::type_id().

◆ clone()

tool::vtk_poly_data_builder * tool::vtk_poly_data_builder::clone ( ) const
virtual

Virtual constructor, makes a new instance of the same type as this.

Postcondition
  • result != 0
  • is_same_type(result)

Reimplemented from sheaf::any.

Definition at line 75 of file vtk_poly_data_builder.cc.

References operator=().

Referenced by is_ancestor_of().

◆ construct_property()

void tool::vtk_poly_data_builder::construct_property ( const sec_vd xproperty,
vtkPolyData &  xresult 
)

◆ invariant()

bool tool::vtk_poly_data_builder::invariant ( ) const
virtual

Class invariant.

Invariant
Todo:
invariance(_coords_dof_buf.ub() == 3); invariance(_coords_dof_buf.ct() == _coords_dof_buf.ub());

Reimplemented from sheaf::any.

Definition at line 121 of file vtk_poly_data_builder.cc.

References sheaf::any::invariant().

Referenced by operator=().

◆ is_ancestor_of()

bool tool::vtk_poly_data_builder::is_ancestor_of ( const any other) const
virtual

Conformance test; true if other conforms to this.

Precondition
  • other != 0

Reimplemented from sheaf::any.

Definition at line 52 of file vtk_poly_data_builder.cc.

References clone().

◆ operator=()

tool::vtk_poly_data_builder & tool::vtk_poly_data_builder::operator= ( const vtk_poly_data_builder xother)

Assignment operator.

Not Implemented.

Postcondition

Definition at line 99 of file vtk_poly_data_builder.cc.

References invariant().

Referenced by clone().


The documentation for this class was generated from the following files: