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/neuroimpl.h

    r721 r932  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    8282                , ChannelSpace *ch = 0
    8383#endif
    84                 );
     84        );
    8585        ~NeuroNetImpl();
    8686        void simulateNeuroNet();
     
    223223        virtual int lateinit() { return 1; }
    224224        /** calculate 'newstate - implementation dependent */
    225         virtual void go(){}
     225        virtual void go() {}
    226226        /** for neurons doing some physical actions (called each simulation step when nnspeed!=1.0) */
    227         virtual void goPhysics(){}
     227        virtual void goPhysics() {}
    228228
    229229        int getSimOrder() { return simorder; }
     
    287287        PARAMGETDEF(cstate) { arg1->setDouble(neuro->state); }
    288288        PARAMSETDEF(cstate) { setCurrentState(arg1->getDouble()); return 0; }
    289         PARAMGETDEF(hold) { arg1->setInt((neuro->flags&(Neuro::HoldState)) ? 1 : 0); }
    290         PARAMSETDEF(hold) { neuro->flags = (neuro->flags&~Neuro::HoldState) | (arg1->getInt() ? Neuro::HoldState : 0); return 0; }
     289        PARAMGETDEF(hold) { arg1->setInt((neuro->flags & (Neuro::HoldState)) ? 1 : 0); }
     290        PARAMSETDEF(hold) { neuro->flags = (neuro->flags & ~Neuro::HoldState) | (arg1->getInt() ? Neuro::HoldState : 0); return 0; }
    291291        PARAMGETDEF(channels) { arg1->setInt(getChannelCount()); }
    292292        PARAMSETDEF(channels) { setChannelCount(arg1->getInt()); return 0; }
Note: See TracChangeset for help on using the changeset viewer.