本文整理汇总了C++中connectToChild函数的典型用法代码示例。如果您正苦于以下问题:C++ connectToChild函数的具体用法?C++ connectToChild怎么用?C++ connectToChild使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了connectToChild函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: connectToChild
/**
* Copy constructor.
*/
Curve::Curve(const Curve& source):SBase(source)
{
// copy the line segments
this->mCurveSegments=*source.getListOfCurveSegments();
connectToChild();
}
开发者ID:Alcibiades586,项目名称:roadrunner,代码行数:10,代码来源:Curve.cpp
示例2: mId
/*
* Constructor which sets the id, the coordinates and the dimensions to the
* given 3D values.
*/
BoundingBox::BoundingBox (LayoutPkgNamespaces* layoutns, const std::string id,
const Point* p,
const Dimensions* d)
: SBase (layoutns)
, mId (id)
, mPosition(layoutns)
, mDimensions(layoutns)
,mPositionExplicitlySet (true)
,mDimensionsExplicitlySet (true)
{
//
// set the element namespace of this object
//
setElementNamespace(layoutns->getURI());
if(p)
{
this->mPosition=*p;
}
mPosition.setElementName("position");
if(d)
{
this->mDimensions=*d;
}
connectToChild();
//
// load package extensions bound with this object (if any)
//
loadPlugins(layoutns);
}
开发者ID:sbmlteam,项目名称:python-libsbml,代码行数:38,代码来源:BoundingBox.cpp
示例3: SBase
LIBSBML_CPP_NAMESPACE_BEGIN
/** @cond doxygenLibsbmlInternal */
/*
* Creates a new RenderPoint object with the given SBML level
* and SBML version.
*
* @param level SBML level of the new object
* @param level SBML version of the new object
*/
RenderPoint::RenderPoint (unsigned int level, unsigned int version, unsigned int pkgVersion) :
SBase(level,version)
,mXOffset(RelAbsVector(0.0,0.0))
,mYOffset(RelAbsVector(0.0,0.0))
,mZOffset(RelAbsVector(0.0,0.0))
,mElementName("element")
{
if (!hasValidLevelVersionNamespaceCombination())
throw SBMLConstructorException();
RenderPkgNamespaces* renderns = new RenderPkgNamespaces(level, version, pkgVersion);
setSBMLNamespacesAndOwn(renderns);
connectToChild();
loadPlugins(renderns);
}
开发者ID:sys-bio,项目名称:libroadrunner-deps,代码行数:27,代码来源:RenderPoint.cpp
示例4: GraphicalObject
/*
* Creates a GeneralGlyph with the given @p id and set the id of the
* associated reaction to the second argument.
*/
GeneralGlyph::GeneralGlyph (LayoutPkgNamespaces* layoutns, const std::string& id,
const std::string& referenceId)
: GraphicalObject( layoutns, id )
,mReference ( referenceId )
,mReferenceGlyphs(layoutns)
,mSubGlyphs(layoutns)
,mCurve(layoutns)
, mCurveExplicitlySet (false)
{
mSubGlyphs.setElementName("listOfSubGlyphs");
//
// (NOTE) Developers don't have to invoke setElementNamespace function as follows (commentted line)
// in this constuctor because the function is properly invoked in the constructor of the
// base class (LineSegment).
//
// setElementNamespace(layoutns->getURI());
connectToChild();
//
// load package extensions bound with this object (if any)
//
loadPlugins(layoutns);
}
开发者ID:sys-bio,项目名称:libroadrunner-deps,代码行数:30,代码来源:GeneralGlyph.cpp
示例5: LineSegment
/*
* Creates a CubicBezier and returns the pointer.
*/
CubicBezier::CubicBezier(LayoutPkgNamespaces* layoutns)
: LineSegment(layoutns)
,mBasePoint1(layoutns)
,mBasePoint2(layoutns)
, mBasePt1ExplicitlySet (false)
, mBasePt2ExplicitlySet (false)
{
this->mStartPoint.setElementName("start");
this->mEndPoint.setElementName("end");
this->mBasePoint1.setElementName("basePoint1");
this->mBasePoint2.setElementName("basePoint2");
connectToChild();
//
// (NOTE) Developers don't have to invoke setElementNamespace function as follows (commentted line)
// in this constuctor because the function is properly invoked in the constructor of the
// base class (LineSegment).
//
// setElementNamespace(layoutns->getURI());
//
// load package extensions bound with this object (if any)
//
loadPlugins(layoutns);
}
开发者ID:sbmlteam,项目名称:python-libsbml,代码行数:30,代码来源:CubicBezier.cpp
示例6: connectToChild
/**
* Copy constructor.
*/
ReactionGlyph::ReactionGlyph(const ReactionGlyph& source):GraphicalObject(source)
{
this->mReaction=source.getReactionId();
this->mCurve=*source.getCurve();
this->mSpeciesReferenceGlyphs=*source.getListOfSpeciesReferenceGlyphs();
connectToChild();
}
开发者ID:alexholehouse,项目名称:SBMLIntegrator,代码行数:11,代码来源:ReactionGlyph.cpp
示例7: connectToChild
/*
* Copy constructor.
*/
CubicBezier::CubicBezier(const CubicBezier& orig):LineSegment(orig)
{
this->mBasePoint1=orig.mBasePoint1;
this->mBasePoint2=orig.mBasePoint2;
this->mBasePt1ExplicitlySet=orig.mBasePt1ExplicitlySet;
this->mBasePt2ExplicitlySet=orig.mBasePt2ExplicitlySet;
connectToChild();
}
开发者ID:sbmlteam,项目名称:python-libsbml,代码行数:12,代码来源:CubicBezier.cpp
示例8: SBasePlugin
LIBSBML_CPP_NAMESPACE_BEGIN
CompSBasePlugin::CompSBasePlugin (const std::string &uri, const std::string &prefix, CompPkgNamespaces *compns)
: SBasePlugin(uri,prefix, compns)
, mListOfReplacedElements(NULL)
, mReplacedBy(NULL)
{
connectToChild();
}
开发者ID:0u812,项目名称:libsbml.js.frozen,代码行数:9,代码来源:CompSBasePlugin.cpp
示例9: connectToChild
/*
* Copy constructor.
*/
BoundingBox::BoundingBox(const BoundingBox& orig):SBase(orig)
{
this->mId = orig.mId;
this->mPosition=orig.mPosition;
this->mDimensions=orig.mDimensions;
this->mPositionExplicitlySet = orig.mPositionExplicitlySet;
this->mDimensionsExplicitlySet = orig.mDimensionsExplicitlySet;
connectToChild();
}
开发者ID:sys-bio,项目名称:libroadrunner-deps,代码行数:13,代码来源:BoundingBox.cpp
示例10: GraphicalObject
/**
* Copy constructor.
*/
SpeciesReferenceGlyph::SpeciesReferenceGlyph(const SpeciesReferenceGlyph& source) :
GraphicalObject(source)
{
this->mSpeciesReference=source.getSpeciesReferenceId();
this->mSpeciesGlyph=source.getSpeciesGlyphId();
this->mRole=source.getRole();
this->mCurve=*source.getCurve();
connectToChild();
}
开发者ID:alexholehouse,项目名称:SBMLIntegrator,代码行数:13,代码来源:SpeciesReferenceGlyph.cpp
示例11: connectToChild
/*
* Copy constructor.
*/
GeneralGlyph::GeneralGlyph(const GeneralGlyph& source):GraphicalObject(source)
{
this->mReference=source.getReferenceId();
this->mCurve=*source.getCurve();
this->mReferenceGlyphs=*source.getListOfReferenceGlyphs();
this->mSubGlyphs=*source.getListOfSubGlyphs();
this->mCurveExplicitlySet = source.mCurveExplicitlySet;
connectToChild();
}
开发者ID:0u812,项目名称:roadrunner-backup,代码行数:13,代码来源:GeneralGlyph.cpp
示例12: GraphicalObject
/*
* Copy constructor.
*/
ReferenceGlyph::ReferenceGlyph(const ReferenceGlyph& source) :
GraphicalObject(source)
{
this->mReference=source.mReference;
this->mGlyph=source.mGlyph;
this->mRole=source.mRole;
this->mCurve=*source.getCurve();
this->mCurveExplicitlySet = source.mCurveExplicitlySet;
connectToChild();
}
开发者ID:sbmlteam,项目名称:python-libsbml,代码行数:14,代码来源:ReferenceGlyph.cpp
示例13: SBase
/*
* Default Constructor set position and dimensions to (0.0,0.0,0.0) and the
* id to an empty string.
*/
BoundingBox::BoundingBox(unsigned int level, unsigned int version, unsigned int pkgVersion)
: SBase(level,version)
,mPosition(level,version,pkgVersion)
,mDimensions(level,version,pkgVersion)
,mPositionExplicitlySet (false)
,mDimensionsExplicitlySet (false)
{
mPosition.setElementName("position");
setSBMLNamespacesAndOwn(new LayoutPkgNamespaces(level,version,pkgVersion));
connectToChild();
}
开发者ID:sys-bio,项目名称:libroadrunner-deps,代码行数:15,代码来源:BoundingBox.cpp
示例14: connectToChild
/**
* Assignment operator.
*/
LineSegment& LineSegment::operator=(const LineSegment& orig)
{
if(&orig!=this)
{
this->SBase::operator=(orig);
this->mStartPoint=orig.mStartPoint;
this->mEndPoint=orig.mEndPoint;
connectToChild();
}
return *this;
}
开发者ID:Alcibiades586,项目名称:roadrunner,代码行数:15,代码来源:LineSegment.cpp
示例15: Transformation
/*
* Creates a new Transformation2D object with the given SBMLNamespaces.
*
* @param sbmlns The SBML namespace for the object.
*/
Transformation2D::Transformation2D (RenderPkgNamespaces* renderns):
Transformation(renderns)
{
this->updateMatrix2D();
// set the element namespace of this object
setElementNamespace(renderns->getURI());
// connect child elements to this element.
connectToChild();
// load package extensions bound with this object (if any)
loadPlugins(renderns);
}
开发者ID:kirichoi,项目名称:roadrunner,代码行数:18,代码来源:Transformation2D.cpp
示例16: addExpectedAttributes
/*
* Creates a new Transformation2D object from the given XMLNode object.
* The XMLNode object has to contain a valid XML representation of a
* Transformation2D object as defined in the render extension specification.
* This method is normally called when render information is read from a file and
* should normally not have to be called explicitely.
*
* @param node the XMLNode object reference that describes the Transformation2D
* object to be instantiated.
*/
Transformation2D::Transformation2D(const XMLNode& node, unsigned int l2version)
:Transformation(node, l2version)
{
ExpectedAttributes ea;
addExpectedAttributes(ea);
this->readAttributes(node.getAttributes(), ea);
setSBMLNamespacesAndOwn(new RenderPkgNamespaces(2,l2version));
connectToChild();
}
开发者ID:kirichoi,项目名称:roadrunner,代码行数:23,代码来源:Transformation2D.cpp
示例17: SBase
LIBSBML_CPP_NAMESPACE_BEGIN
/**
* Creates a curve with the given SBML level, version and package version and
* an empty list of segments.
*/
Curve::Curve (unsigned int level, unsigned int version, unsigned int pkgVersion)
: SBase (level,version)
,mCurveSegments(level,version,pkgVersion)
{
setSBMLNamespacesAndOwn(new LayoutPkgNamespaces(level,version,pkgVersion));
connectToChild();
}
开发者ID:Alcibiades586,项目名称:roadrunner,代码行数:13,代码来源:Curve.cpp
示例18: connectToChild
/*
* Assignment operator.
*/
Curve& Curve::operator=(const Curve& source)
{
if(&source!=this)
{
this->SBase::operator=(source);
// copy the line segments
this->mCurveSegments=*source.getListOfCurveSegments();
connectToChild();
}
return *this;
}
开发者ID:sbmlteam,项目名称:python-libsbml,代码行数:16,代码来源:Curve.cpp
示例19: RenderInformationBase
/*
* Creates a new GlobalRenderInformation object with the given SBMLNamespaces.
*
* @param sbmlns The SBML namespace for the object.
*/
GlobalRenderInformation::GlobalRenderInformation (RenderPkgNamespaces* renderns):
RenderInformationBase(renderns), mListOfStyles(renderns)
{
if (!hasValidLevelVersionNamespaceCombination())
throw SBMLConstructorException();
// set the element namespace of this object
setElementNamespace(renderns->getURI());
// connect child elements to this element.
connectToChild();
// load package extensions bound with this object (if any)
loadPlugins(renderns);
}
开发者ID:sys-bio,项目名称:libroadrunner-deps,代码行数:19,代码来源:GlobalRenderInformation.cpp
示例20: RenderPoint
/*
* Creates a new RenderCubicBezier object with the given SBMLNamespaces.
*
* @param sbmlns The SBML namespace for the object.
*/
RenderCubicBezier::RenderCubicBezier (RenderPkgNamespaces* renderns):
RenderPoint(renderns)
{
if (!hasValidLevelVersionNamespaceCombination())
throw SBMLConstructorException();
// set the element namespace of this object
setElementNamespace(renderns->getURI());
// connect child elements to this element.
connectToChild();
// load package extensions bound with this object (if any)
loadPlugins(renderns);
}
开发者ID:kirichoi,项目名称:roadrunner,代码行数:19,代码来源:RenderCubicBezier.cpp
注:本文中的connectToChild函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论