Example #1
0
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);
}
Example #2
0
	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);
	}
///Конструктор
  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 ());
    }
  }