source: nanovis/branches/1.1/ParticleSystemFactory.h @ 4874

Last change on this file since 4874 was 3502, checked in by ldelgass, 11 years ago

Add basic VTK structured points reader to nanovis, update copyright dates.

  • Property svn:eol-style set to native
File size: 788 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef PARTICLESYSTEMFACTORY_H
7#define PARTICLESYSTEMFACTORY_H
8
9#include <string>
10
11#include <expat.h>
12
13class ParticleSystem;
14
15class ParticleSystemFactory
16{
17public:
18    ParticleSystemFactory();
19    ~ParticleSystemFactory();
20
21    ParticleSystem *create(const std::string& fileName);
22
23private:
24    void parseParticleSysInfo(const char **attrs);
25    void parseEmitterInfo(const char **attrs);
26
27    static void endElement(void *userData, const char *name);
28    static void startElement(void *userData, const char *elementName, const char **attrs);
29    static void text(void *data, const XML_Char *txt, int len);
30
31    ParticleSystem *_newParticleSystem;
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.