SheafSystem  0.0.0.0
barycentric_quad_refiner.h
Go to the documentation of this file.
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 
20 
21 #ifndef BARYCENTRIC_QUAD_REFINER_H
22 #define BARYCENTRIC_QUAD_REFINER_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef EDGE_CENTERED_POLYGON_REFINER_H
29 #include "SheafSystem/edge_centered_polygon_refiner.h"
30 #endif
31 
32 namespace fields
33 {
34 
41 {
42 
43  // ===========================================================
45  // ===========================================================
47 
48 public:
49 
55 
60 
61 protected:
62 
67 
71  virtual size_type unrefined_vertex_ct() const;
72 
76  virtual size_type refined_zone_ct() const;
77 
81  virtual bool is_zone_centered_refiner() const;
82 
88  virtual const block<size_type>& first_vertex_index() const;
89 
90 private:
91 
98  enum static_const_int {REFINED_ZONE_CT = 4};
99  // static const size_type REFINED_ZONE_CT = 4;
100 
102 
103 
104  // ===========================================================
106  // ===========================================================
108 
109 public:
110 
114  virtual const std::string& zone_type_name() const;
115 
120  const chart_point_coord_type* local_coordinates_map(size_type xi) const;
121 
123 
124 
125  // ===========================================================
127  // ===========================================================
129 
130 public:
131 
135  virtual barycentric_quad_refiner* clone() const;
136 
140  virtual barycentric_quad_refiner& operator=(const local_field_refiner& xother);
141 
145  barycentric_quad_refiner& operator=(const barycentric_quad_refiner& xother);
146 
150  virtual ~barycentric_quad_refiner();
151 
155  virtual bool invariant() const;
156 
160  virtual bool is_ancestor_of(const any* xother) const;
161 
163 
164 };
165 
166 } // namespace fields
167 
168 #endif // ifndef BARYCENTRIC_QUAD_REFINER_H
double chart_point_coord_type
The type of local coordinate in the base space; the scalar type for the local coordinate vector space...
Definition: fiber_bundle.h:57
Namespace for fields component of sheaf system.
An abstract field refiner that subdivides a polygon by introducing new vertices into the centers of t...
A field refiner that subdivides a quad into 4 quads by introducing a new vertex in the center of the ...
Abstract base class with useful features for all objects.
Definition: any.h:39
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
Definition: sheaf.h:52
An abstract policy that determines the conditions under which a zone should be refined.
An abstract refiner for a field over a local region (primitive cell) in the base space.