本文整理汇总了C++中PropertyList::AddProperty方法的典型用法代码示例。如果您正苦于以下问题:C++ PropertyList::AddProperty方法的具体用法?C++ PropertyList::AddProperty怎么用?C++ PropertyList::AddProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PropertyList
的用法示例。
在下文中一共展示了PropertyList::AddProperty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetPropertyList
void PointLight::GetPropertyList( PropertyList& o_properties ) const
{
Property* name = new Property( COMP_PROP_NAME, GetName() );
o_properties.AddProperty(name);
Property* position = new Property( COMP_PROP_POSITION, m_transform.GetPosition() );
o_properties.AddProperty(position);
}
示例2: GetPropertyList
void PointCloud::GetPropertyList( PropertyList& o_properties ) const
{
Object::GetPropertyList(o_properties); //get the parent properties
//get the child properties
Property* property = new Property(POINTCLOUD_XMIN_NAME, m_xMin, m_parametersXMin);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_XMAX_NAME, m_xMax, m_parametersXMax);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_YMIN_NAME, m_yMin, m_parametersYMin);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_YMAX_NAME, m_yMax, m_parametersYMax);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_ZMIN_NAME, m_zMin, m_parametersZMin);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_ZMAX_NAME, m_zMax, m_parametersZMax);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_DISTANCEVIEWPLANE_NAME, m_distanceViewPlane, m_parametersDistanceViewPlane);
o_properties.AddProperty(property);
property = new Property(POINTCLOUD_DISTANCESHELLSPHERE_NAME, m_distanceShellSphere, m_parametersDistanceShellSphere);
o_properties.AddProperty(property);
}
示例3: Impl
///Конструктор
Impl (const Screen& in_screen)
: screen (in_screen)
{
//заполнение свойств устройства вывода
common::PropertyMap in_properties;
screen.GetProperties (in_properties);
for (size_t i=0, count=in_properties.Size (); i<count; i++)
{
stl::string value;
in_properties.GetProperty (i, value);
properties.AddProperty (in_properties.PropertyName (i), value.c_str ());
}
}