ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Functions
chirp.cpp File Reference
#include "PhysicalObjects/chirp.h"
#include <Box2D/Box2D.h>
#include <QPainter>
#include <QDebug>
#include <QGraphicsScene>
#include <QSharedPointer>
#include <QJsonObject>
#include <QJsonArray>
#include <limits>
#include <cmath>
#include "physicalobjectfactory.h"
#include "mathutility.h"
#include "drawutilities.h"
#include "irsensor.h"
#include "world.h"
#include "robotrepository.h"
#include "chirpnetworkcontroller.h"
#include "jsonhelpers.h"
Include dependency graph for chirp.cpp:

Functions

PhysicalObjectchirpFactory (World *world, const QJsonObject &obj)
 chirpFactory follows the PhysicalObject FactoryFunction, creating the Chirp object from a JSON object. More...
 

Function Documentation

PhysicalObject* chirpFactory ( World world,
const QJsonObject &  obj 
)

chirpFactory follows the PhysicalObject FactoryFunction, creating the Chirp object from a JSON object.

See Also
physicalobjectfactory.h
Parameters
worldWorld to put the physical object model in.
objJSON object containing the parameters for the robot.
Returns
A constructed Chirp object.

References RobotRepository::addRobot(), RobotRepository::instance(), jsonObjectToPoint(), and World::world().

Referenced by PhysicalObjectFactory::PhysicalObjectFactory().

Here is the call graph for this function:

Here is the caller graph for this function: