SCIXyzDataSeries3D *ds = [[SCIXyzDataSeries3D alloc] initWithXType:SCIDataType_Double yType:SCIDataType_Double zType:SCIDataType_Double];
SCIPointMetadataProvider3D *metadataProvider = [SCIPointMetadataProvider3D new];
for (int i = 0; i < 250; ++i) {
double x = [SCDDataManager getGaussianRandomNumber:15 stdDev:1.5];
double y = [SCDDataManager getGaussianRandomNumber:15 stdDev:1.5];
double z = [SCDDataManager getGaussianRandomNumber:15 stdDev:1.5];
[ds appendX:@(x) y:@(y) z:@(z)];
// Provide metadata for each point in DataSeries
SCIPointMetadata3D *metaData = [[SCIPointMetadata3D alloc] initWithVertexColor:[SCDDataManager randomColor] andScale:[SCDDataManager randomScale]];
[metadataProvider.metadata addObject:metaData];
}
...
// Apply the MetadataProvider onto the Scatter Series 3D
SCIScatterRenderableSeries3D *rs = [SCIScatterRenderableSeries3D new];
rs.metadataProvider = metadataProvider;
let dataSeries = SCIXyzDataSeries3D(xType: .double, yType: .double, zType: .double)
let pointMetaDataProvider = SCIPointMetadataProvider3D()
for _ in 0 ..< 250 {
let x = SCDDataManager.getGaussianRandomNumber(5, stdDev: 1.5)
let y = SCDDataManager.getGaussianRandomNumber(5, stdDev: 1.5)
let z = SCDDataManager.getGaussianRandomNumber(5, stdDev: 1.5)
dataSeries.append(x: x, y: y, z: z);
// Provide metadata for each point in DataSeries
let metadata = SCIPointMetadata3D(vertexColor: SCDDataManager.randomColor(), andScale: SCDDataManager.randomScale())
pointMetaDataProvider.metadata.add(metadata)
}
...
// Apply the MetadataProvider onto the Scatter Series 3D
let rs = SCIScatterRenderableSeries3D()
rs.metadataProvider = pointMetaDataProvider
var dataSeries3D = new XyzDataSeries3D<double, double, double>();
var metadataProvider = new SCIPointMetadataProvider3D();
for (int i = 0; i < 250; i++)
{
var x = dataManager.GetGaussianRandomNumber(5, 1.5);
var y = dataManager.GetGaussianRandomNumber(5, 1.5);
var z = dataManager.GetGaussianRandomNumber(5, 1.5);
dataSeries3D.Append(x, y, z);
// Provide metadata for each point in DataSeries
var metadata = new SCIPointMetadata3D((uint)dataManager.GetRandomColor().ToArgb(), dataManager.GetRandomScale());
metadataProvider.Metadata.Add(metadata);
}
...
// Apply the MetadataProvider onto the Scatter Series 3D
var rSeries3D = new SCIScatterRenderableSeries3D();
rSeries3D.MetadataProvider = metadataProvider;