Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
iattach.h
Go to the documentation of this file.
1 // iattach.h
2 #pragma once
3 
9 #include "base/src/base.h"
10 
11 namespace itasca {
12  class IThing;
13 }
14 namespace zone {
15  class IGp;
16  class IFace;
17  class IQuadWeight;
18 
20 
23  class IAttachPoint {
24  public:
26  inline static const TType type_ = 0x4c815a1d;
28  enum class ClassType {
29  Gp = 1,
30 #ifdef THREED
31  Edge,
32 #endif
33  Face
34  };
35 
37  virtual const IThing * getIThing() const = 0;
39  virtual IThing * getIThing() = 0;
42  virtual const IAttachPoint * getNext() const = 0;
44  virtual DVect3 getLocation() const = 0;
46  virtual bool isMechNull() const = 0;
48  virtual const IGp * getSlave() const = 0;
50  virtual ClassType classType() const = 0;
54  virtual const IGp * getMaster1() const = 0;
58  virtual const IGp * getMaster2() const = 0;
62  virtual const IFace * getFace()const = 0;
66  virtual double getWeight() const = 0;
68  virtual void setWeight(double w) = 0;
72  virtual const IQuadWeight * getQuadWeight() const = 0;
74  virtual IQuadWeight * getQuadWeight() = 0;
76  virtual bool getSnap() const = 0;
78  virtual void setSnap(bool s) = 0;
79  };
80 }
81 // EoF
virtual const IAttachPoint * getNext() const =0
Interface to face weight, used to define the location of a gridpoint in a given face.
Definition: iquadweight.h:19
namespace Itasca
Definition: basememory.cpp:9
Gp attached to a face of a zone.
Base class for items that will be stored in containers.
Definition: ithing.h:31
Direct Gp to Gp attachment.
virtual const IGp * getSlave() const =0
returns a const pointer to the slave gridpoint.
ClassType
The specific types of attach conditions that can be derived from an attach point.
Definition: iattach.h:28
virtual DVect3 getLocation() const =0
returns the attachment point location
unsigned int TType
class type indicator
Definition: basedef.h:41
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: iattach.h:26
virtual bool isMechNull() const =0
returns true if the Gridpoint was 'nulled'
Interface to zone faces.
Definition: iface.h:23
virtual double getWeight() const =0
virtual bool getSnap() const =0
returns true if gridpoints are "snapped"
virtual const IThing * getIThing() const =0
returns a const IThing pointer
Interface to provide access to a gridpoint.
Definition: igp.h:64
virtual const IQuadWeight * getQuadWeight() const =0
One stop include for all objects defined as part of base interface.
virtual const IGp * getMaster2() const =0
virtual ClassType classType() const =0
Returns the type of attach this class represents. gp-gp, gp-edge, or gp-face.
virtual void setWeight(double w)=0
sets the weight for a gridpoint to edge attachments
Interface to a attachment object.
Definition: iattach.h:23
virtual void setSnap(bool s)=0
set condition to "snap" gridpoints
virtual const IFace * getFace() const =0
virtual const IGp * getMaster1() const =0