MeshKit
1.0
|
00001 #include "meshkit/AF2Edge3D.hpp" 00002 00003 // C++ 00004 #include <cstddef> 00005 00006 // MeshKit 00007 #include "meshkit/AF2Front.hpp" 00008 00009 AF2Edge3D::AF2Edge3D(AF2Point3D* start, AF2Point3D* end) : 00010 startPnt(start), endPnt(end), qualityLevel(1u), observer(NULL) 00011 { 00012 // no work to do beyond the member initializers 00013 } 00014 00015 void AF2Edge3D::decreaseQuality() 00016 { 00017 ++qualityLevel; 00018 if (observer != NULL) 00019 { 00020 observer->qualityDecreased(this); 00021 } 00022 } 00023 00024 AF2Point3D* AF2Edge3D::getStart() const 00025 { 00026 return startPnt; 00027 } 00028 00029 AF2Point3D* AF2Edge3D::getEnd() const 00030 { 00031 return endPnt; 00032 } 00033 00034 unsigned int AF2Edge3D::getQualityLevel() const 00035 { 00036 return qualityLevel; 00037 } 00038 00039 void AF2Edge3D::setObserver(QualityDecreaseObserver* observerArg) 00040 { 00041 observer = observerArg; 00042 }