Changeset 11083 for code/trunk/src/modules/objects
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (9 years ago)
- Location:
- code/trunk/src/modules/objects
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/objects/ForceField.cc
r11071 r11083 63 63 //Standard Values 64 64 this->setDirection(Vector3::ZERO); 65 this->set Velocity(100);65 this->setFieldVelocity(100); 66 66 this->setDiameter(500); 67 67 this->setMassDiameter(0); //! We allow point-masses … … 88 88 SUPER(ForceField, XMLPort, xmlelement, mode); 89 89 90 XMLPortParam(ForceField, "velocity", set Velocity, getVelocity, xmlelement, mode).defaultValues(100);90 XMLPortParam(ForceField, "velocity", setFieldVelocity, getFieldVelocity, xmlelement, mode).defaultValues(100); 91 91 XMLPortParam(ForceField, "diameter", setDiameter, getDiameter, xmlelement, mode).defaultValues(500); 92 92 XMLPortParam(ForceField, "massDiameter", setMassDiameter, getMassDiameter, xmlelement, mode).defaultValues(0); -
code/trunk/src/modules/objects/ForceField.h
r11071 r11083 98 98 @param vel The velocity to be set. 99 99 */ 100 inline void set Velocity(float vel)100 inline void setFieldVelocity(float vel) 101 101 { this->velocity_ = vel; } 102 102 /** … … 104 104 @return Returns the velocity of the ForceField. 105 105 */ 106 inline float get Velocity()106 inline float getFieldVelocity() 107 107 { return this->velocity_; } 108 108 -
code/trunk/src/modules/objects/SpaceBoundaries.cc
r11071 r11083 221 221 } 222 222 } 223 if(/* humanItem &&*/ abs(this->maxDistance_ - distance) < this->showDistance_ )223 if(/* humanItem &&*/ std::abs(this->maxDistance_ - distance) < this->showDistance_ ) 224 224 { 225 225 this->displayBoundaries(currentPawn, 1.0f - fabs(this->maxDistance_ - distance) / this->showDistance_); // Show the boundary -
code/trunk/src/modules/objects/triggers/DistanceTrigger.h
r11071 r11083 97 97 virtual ~DistanceTrigger(); 98 98 99 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; // Method for creating a DistanceTrigger object through XML.99 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; // Method for creating a DistanceTrigger object through XML. 100 100 101 101 void addTarget(const std::string& targets); // Add some target to the DistanceTrigger. -
code/trunk/src/modules/objects/triggers/EventTrigger.h
r11071 r11083 73 73 virtual ~EventTrigger(); 74 74 75 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ; // Creates an event port.75 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; // Creates an event port. 76 76 77 77 /**
Note: See TracChangeset
for help on using the changeset viewer.