42 _Name = iBrother._Name;
43 _LibraryPath = iBrother._LibraryPath;
44 if (0 == iBrother._FrsMaterial) {
48 _FrsMaterial =
new FrsMaterial(*(iBrother._FrsMaterial));
51 _BBox = iBrother.
bbox();
56 std::swap(_BBox, ioOther._BBox);
57 std::swap(_Id, ioOther._Id);
58 std::swap(_Name, ioOther._Name);
59 std::swap(_LibraryPath, ioOther._LibraryPath);
60 std::swap(_FrsMaterial, ioOther._FrsMaterial);
65 if (&iBrother !=
this) {
67 _Name = iBrother._Name;
68 _LibraryPath = iBrother._LibraryPath;
69 if (0 == iBrother._FrsMaterial) {
73 if (_FrsMaterial == 0) {
74 _FrsMaterial =
new FrsMaterial(*iBrother._FrsMaterial);
77 (*_FrsMaterial) = (*(iBrother._FrsMaterial));
79 _BBox = iBrother.
bbox();
87 if (0 != _FrsMaterial) {
99 v.visitFrsMaterial(*_FrsMaterial);
A class to hold a bounding box.
Base Class for most shared objects (Node, Rep). Defines the addRef, release system.
Class used to handle materials.
Vectors and Matrices (useful type definitions)
Define the float precision used in the program.
Class to visit (without doing anything) a scene graph structure.
ATTR_WARN_UNUSED_RESULT const BMVert * v
void setLibraryPath(const string &path)
const FrsMaterial * frs_material() const
const string & getLibraryPath() const
virtual void accept(SceneVisitor &v)
void setFrsMaterial(const FrsMaterial &iMaterial)
const string & getName() const
virtual void setBBox(const BBox< Vec3f > &iBox)
Rep & operator=(const Rep &iBrother)
virtual void ComputeBBox()=0
virtual const BBox< Vec3f > & bbox() const
void setName(const string &name)