|
|
@@ -0,0 +1,61 @@
|
|
|
+// Filename: dcField.cxx
|
|
|
+// Created by: drose (11Oct00)
|
|
|
+//
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+
|
|
|
+#include "dcField.h"
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: DCField::get_number
|
|
|
+// Access: Public
|
|
|
+// Description: Returns a unique index number associated with this
|
|
|
+// field. This is defined implicitly when the .dc
|
|
|
+// file(s) are read.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+int DCField::
|
|
|
+get_number() const {
|
|
|
+ return _number;
|
|
|
+}
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: DCField::get_name
|
|
|
+// Access: Public
|
|
|
+// Description: Returns the name of this field.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+const string &DCField::
|
|
|
+get_name() const {
|
|
|
+ return _name;
|
|
|
+}
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: DCField::as_atomic_field
|
|
|
+// Access: Public, Virtual
|
|
|
+// Description: Returns the same field pointer converted to an atomic
|
|
|
+// field pointer, if this is in fact an atomic field;
|
|
|
+// otherwise, returns NULL.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+DCAtomicField *DCField::
|
|
|
+as_atomic_field() {
|
|
|
+ return (DCAtomicField *)NULL;
|
|
|
+}
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: DCField::as_molecular_field
|
|
|
+// Access: Public, Virtual
|
|
|
+// Description: Returns the same field pointer converted to a
|
|
|
+// molecular field pointer, if this is in fact a
|
|
|
+// molecular field; otherwise, returns NULL.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+DCMolecularField *DCField::
|
|
|
+as_molecular_field() {
|
|
|
+ return (DCMolecularField *)NULL;
|
|
|
+}
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: DCField::Destructor
|
|
|
+// Access: Public, Virtual
|
|
|
+// Description:
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+DCField::
|
|
|
+~DCField() {
|
|
|
+}
|