Ignore:
Timestamp:
05/28/20 18:00:45 (4 years ago)
Author:
Maciej Komosinski
Message:

Neuron classes now have a property (a bit field) that says whether each neuron class supports model shape BALL_AND_STICK, SOLIDS, or both

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/neurofactory.h

    r790 r932  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    77
    88#include <frams/model/modelparts.h>
     9#include <frams/model/model.h>
    910#include <map>
    1011
     
    1819        NeuroImpl* setImplementation(const SString& classname, NeuroImpl *ni, bool deleteold = 1);
    1920        NeuroImpl* getImplementation(NeuroClass *nc);
    20         class NeuroImpl* createNeuroImpl(Neuro *n)
     21        class NeuroImpl* createNeuroImpl(Neuro *n, Model::ShapeType shape_type)
    2122        {
    22                 NeuroClass *nc = n->getClass(); if (!nc) return 0; return createNeuroImpl(nc);
     23                NeuroClass *nc = n->getClass(); if (!nc) return 0; return createNeuroImpl(nc, shape_type);
    2324        }
    24         class NeuroImpl* createNeuroImpl(NeuroClass *nc);
     25        class NeuroImpl* createNeuroImpl(NeuroClass *nc, Model::ShapeType shape_type);
    2526
    2627        void setStandardImplementation();
Note: See TracChangeset for help on using the changeset viewer.